aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2023-05-27 14:36:23 +0200
committer lemon<lsof@mailbox.org>2023-05-27 14:36:23 +0200
commit0f53520c5ee5f07ec2ba0361172fd72bd1456ad4 (patch)
tree6ba8c3bb92dbe451ac7b36fabfa27021c79e1a45 /test.c
parent640a3dac2b18d037169af15dfd5502c386c7e828 (diff)
recursive descent -> precedence climbing parser
Diffstat (limited to 'test.c')
-rw-r--r--test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.c b/test.c
index ee2b4d2..deaa6d9 100644
--- a/test.c
+++ b/test.c
@@ -34,11 +34,18 @@ int diff(struct f *x, struct f *y)
return x - y;
}
+#define xx 2
+
+int waaa[xx == 0 ? 'Z'
+ : xx == 1? 'O'
+ : xx == 2? 'T'
+ : '?'];
extern int printf(char *, ...);
int main() {
unsigned char x = 255;
int k = x += 1;
+ 1+waaa;
return abs(k);
}