mirror of https://github.com/lianthony/NT4.0
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
16 lines
352 B
@echo off
|
|
pre0 %1 > baregram.y
|
|
rem baregram.y == head
|
|
pre1 %1 > body
|
|
pre2 %1 > tail
|
|
cl -E body | prepass | stripact > barebody
|
|
cat barebody >> baregram.y
|
|
cat tail >> baregram.y
|
|
if not errorlevel 0 goto error
|
|
gtoken barebody > grmwrds.raw
|
|
sort -f -u grmwrds.raw | awk -f invert.awk > tblgram.y
|
|
goto done
|
|
:error
|
|
@echo on
|
|
echo "Unparseable grammar"
|
|
:done
|