Remove TOKEN_EOF; define EOF token and start rule in Generator

This commit is contained in:
josh committed 2022-10-02 10:07:44 -04:00
1 parent 150be33826
commit f46b5b3f4d
9 files changed
+59 -60

No files matched your search

+2 -5
View File
@@ -12,7 +12,7 @@ class Propane
# @return [Integer]
# Rule ID.
attr_reader :id
attr_accessor :id
# @return [Integer]
# Line number where the rule was defined in the input grammar.
@@ -36,13 +36,10 @@ class Propane
# User code associated with the rule.
# @param line_number [Integer]
# Line number where the rule was defined in the input grammar.
# @param id [Integer]
# Rule ID.
def initialize(name, components, code, line_number, id)
def initialize(name, components, code, line_number)
@name = name
@components = components
@code = code
@id = id
@line_number = line_number
end