diff options
| author | mryouse | 2022-05-23 04:00:35 +0000 |
|---|---|---|
| committer | mryouse | 2022-05-23 04:00:35 +0000 |
| commit | f68911f70a666cf5b11ebe47a4f07c7fe343c01b (patch) | |
| tree | b590471d624933b1e3c9686289a820d11ae6b9fc | |
| parent | 5e788bc00a600b87a14e79c57a4d57bc9fb20fcb (diff) | |
lex comments (ignore them)
| -rw-r--r-- | lexer.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -46,6 +46,11 @@ def lex(data): tokens = [] while current < end: char = data[current] + if char == ";": + while char != "\n" and current < end: + current += 1 + char = data[current] + continue if char == "\n": line += 1 if char in WHITESPACE: |
