]> ocean-lang.org Git - ocean/commit
parsergen: record line number of reduce fragments.
authorNeilBrown <neil@brown.name>
Tue, 6 Feb 2018 05:42:01 +0000 (16:42 +1100)
committerNeilBrown <neil@brown.name>
Tue, 13 Feb 2018 01:56:57 +0000 (12:56 +1100)
commit3645752a9fc66724d0b6c8cb6a8d494da0d986fe
tree554fa2759f9d3744cd14de8ef90625c427b2f761
parent24300fad59ee2e1fbe8378095c1ba56780dd376a
parsergen: record line number of reduce fragments.

If there is an error in a code fragment used to handle
a 'reduce' action, we need the compiler to report the
correct line from the grammar file.
This information is easily available from the scanner,
we just need to pass it along.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/parsergen.mdc