Skip to content

Commit

Permalink
Use keyword table for processing keywords and identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 25, 2013
1 parent e3a4d0e commit 1c61665
Show file tree
Hide file tree
Showing 5 changed files with 2,292 additions and 2,533 deletions.
1 change: 1 addition & 0 deletions lib/opal/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def pop_scope
end

def on_error(t, val, vstack)
puts lexer.instance_variable_get(:@scanner).peek(50)
raise "parse error on value #{val.inspect} (#{token_to_str(t) || '?'}) :#{@file}:#{lexer.line}"
end

Expand Down
Loading

0 comments on commit 1c61665

Please sign in to comment.