Skip to content

Commit

Permalink
Replace NewPerser with Parser ruby#1
Browse files Browse the repository at this point in the history
- Parse single-line comments
- Set %expect
  • Loading branch information
junk0612 committed Oct 15, 2023
1 parent be55952 commit 61dbb03
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 61dbb03

Please sign in to comment.