lib/antelope/ace/grammar/loading.rb in antelope-0.1.7 vs lib/antelope/ace/grammar/loading.rb in antelope-0.1.8
- old
+ new
@@ -32,10 +32,10 @@
# @param string [String] the grammar body.
# @return [Grammar]
# @see Ace::Scanner
# @see Ace::Compiler
def from_string(name, output, string)
- scanner = Ace::Scanner.scan(string)
+ scanner = Ace::Scanner.scan(string, name)
compiler = Ace::Compiler.compile(scanner)
new(name, output, compiler)
end
end