Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
352 B

4 years ago
  1. @echo off
  2. pre0 %1 > baregram.y
  3. rem baregram.y == head
  4. pre1 %1 > body
  5. pre2 %1 > tail
  6. cl -E body | prepass | stripact > barebody
  7. cat barebody >> baregram.y
  8. cat tail >> baregram.y
  9. if not errorlevel 0 goto error
  10. gtoken barebody > grmwrds.raw
  11. sort -f -u grmwrds.raw | awk -f invert.awk > tblgram.y
  12. goto done
  13. :error
  14. @echo on
  15. echo "Unparseable grammar"
  16. :done