Skip to content

Commit

Permalink
Add a spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
junk0612 committed Aug 1, 2023
1 parent 48b2236 commit 796bf3a
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 253 deletions.
8 changes: 8 additions & 0 deletions lib/lrama/new_lexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ def next_token
end
end

def col
@scanner.pos
end

def row
@scanner.pos
end

def lex_token
while !@scanner.eos? do
case
Expand Down
Loading

0 comments on commit 796bf3a

Please sign in to comment.