Skip to content

Commit

Permalink
Merge pull request #113 from yui-knk/cosme
Browse files Browse the repository at this point in the history
Cosmetic changes
  • Loading branch information
yui-knk authored Oct 12, 2023
2 parents 48e5da3 + 375f671 commit a25a287
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/lrama/grammar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ def create_token(type, s_value, line, column)

return t
end

private

def find_nterm_by_id!(id)
Expand Down Expand Up @@ -653,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
Expand Down

0 comments on commit a25a287

Please sign in to comment.