Skip to content

Commit

Permalink
Merge pull request #121 from junk0612/replace-new-parser-1
Browse files Browse the repository at this point in the history
Replace NewPerser with Parser #1
  • Loading branch information
yui-knk authored Oct 15, 2023
2 parents be55952 + 61dbb03 commit b4aaefc
Show file tree
Hide file tree
Showing 4 changed files with 1,770 additions and 311 deletions.
3 changes: 3 additions & 0 deletions lib/lrama/new_lexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def lex_token
# noop
when @scanner.scan(/\/\*/)
lex_comment
when @scanner.scan(/\/\//)
@scanner.scan_until(/\n/)
newline
else
break
end
Expand Down
Loading

0 comments on commit b4aaefc

Please sign in to comment.