diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-30 07:07:11 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-07-07 21:17:22 +0200 |
commit | 6f9af58e183e40a3c876230e41c3221155e4dcc2 (patch) | |
tree | 9b8395fe85fdf18dc380095a797d65ab6806624f /module/c/lex.scm | |
parent | Fix escape sequences in chars and strings. (diff) | |
download | calp-6f9af58e183e40a3c876230e41c3221155e4dcc2.tar.gz calp-6f9af58e183e40a3c876230e41c3221155e4dcc2.tar.xz |
C parser minor cleanup.
Diffstat (limited to 'module/c/lex.scm')
-rw-r--r-- | module/c/lex.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/c/lex.scm b/module/c/lex.scm index b3c82001..0bde5c9e 100644 --- a/module/c/lex.scm +++ b/module/c/lex.scm @@ -112,6 +112,8 @@ ;; It's important that ++ and -- are BEFORE + and - ;; otherwise the first + is found, leaving the second +, which fails ;; to lex since it's an invalid token + ;; TODO sizeof can be written as a prefix operator + ;; (without parenthesis) if the operand is an expression. (or "*" "&" "++" "--" "!" "~" "+" "-")) |