Use #line for user code blocks to report input grammar position for errors

This commit is contained in:
josh committed 2026-05-21 16:24:25 -07:00
1 parent 42035c3a55
commit 7a140623ff
5 files changed
+32 -18

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ class Propane
def run(input_file, output_file, log_file, options)
begin
grammar = Grammar.new(File.read(input_file))
grammar = Grammar.new(File.read(input_file), input_file)
generator = Generator.new(grammar, output_file, log_file, options)
generator.generate
rescue Error => e