lexing and parsing unary operators

This commit is contained in:
Clemens-Dautermann 2020-08-20 17:11:43 +02:00
parent b2c2a2f497
commit 202c1d2ca2
21 changed files with 290 additions and 130 deletions

3
stage_2/valid/bitwise.c Normal file
View file

@ -0,0 +1,3 @@
int main() {
return !12;
}

View file

@ -0,0 +1,3 @@
int main() {
return ~0;
}

3
stage_2/valid/neg.c Normal file
View file

@ -0,0 +1,3 @@
int main() {
return -5;
}

View file

@ -0,0 +1,3 @@
int main() {
return !-3;
}

View file

@ -0,0 +1,3 @@
int main() {
return -~0;
}

3
stage_2/valid/not_five.c Normal file
View file

@ -0,0 +1,3 @@
int main() {
return !5;
}

3
stage_2/valid/not_zero.c Normal file
View file

@ -0,0 +1,3 @@
int main() {
return !0;
}