Use #line for user code blocks to report input grammar position for errors
This commit is contained in:
1 parent
42035c3a55
commit
7a140623ff
5 files changed
+32
-18
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user