diff --git a/lib/lrama/grammar.rb b/lib/lrama/grammar.rb index 1cd420c9..91685530 100644 --- a/lib/lrama/grammar.rb +++ b/lib/lrama/grammar.rb @@ -654,7 +654,9 @@ def collect_symbols # Fill #number and #token_id def fill_symbol_number - # TODO: why start from 256 + # Character literal in grammar file has + # token id corresponding to ASCII code by default, + # so start token_id from 256. token_id = 256 # YYEMPTY = -2