Skip to content

Commit

Permalink
Remove unused instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Nov 12, 2023
1 parent 5a54f91 commit f04d3d4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/lrama/lexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@ def initialize(text)
@head_line = @line = 1
@status = :initial
@end_symbol = nil
@lex_stack = []
end

def next_token
return @lex_stack.pop unless @lex_stack.empty?

case @status
when :initial
lex_token
Expand Down

0 comments on commit f04d3d4

Please sign in to comment.