aboutsummaryrefslogtreecommitdiff
path: root/module/c/lex.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-30 07:07:11 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-07 21:17:22 +0200
commit6f9af58e183e40a3c876230e41c3221155e4dcc2 (patch)
tree9b8395fe85fdf18dc380095a797d65ab6806624f /module/c/lex.scm
parentFix escape sequences in chars and strings. (diff)
downloadcalp-6f9af58e183e40a3c876230e41c3221155e4dcc2.tar.gz
calp-6f9af58e183e40a3c876230e41c3221155e4dcc2.tar.xz
C parser minor cleanup.
Diffstat (limited to 'module/c/lex.scm')
-rw-r--r--module/c/lex.scm2
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 "*" "&" "++" "--"
"!" "~" "+" "-"))