lib/import/shake_grammar/lexer.rb in tracksperanto-2.1.1 vs lib/import/shake_grammar/lexer.rb in tracksperanto-2.2.0
- old
+ new
@@ -110,9 +110,12 @@
def unquote_s(string)
string.strip.gsub(/^\"/, '').gsub(/\"$/, '').gsub(/\\\"/, '"')
end
+ # In the default impl. this just puts things on the stack. However,
+ # if you want to unwrap structures as they come along (whych you do for big files)
+ # you have to override this
def push(atom_array)
@stack << atom_array
end
def vardef(var_specifier)
\ No newline at end of file