thutt / lrstar

Port of lrstar parser generator to Linux
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

lrstar.txt file used to communicate return value #7

Closed thutt closed 10 months ago

thutt commented 10 months ago

The combination of dfa & lrstar use a 'lrstar.txt' file to communicate the return code of lrstar to dfa.
lrstar writes the file with either 0 or 1 as the only byte. Zero means that lrstar succeeded, while one means it failed. dfa reads the file and silently quits if the value is not zero.

The use of this file should be removed, and a wrapper script written that will run both lrstar & dfa.

thutt commented 10 months ago

This isue has been addressed by 18be9cf. A new wrapper script, lrgen, should be used to execute both 'lrstar' and 'dfa' on a grammar.