diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-07-02 11:55:17 -0700 |
| commit | 6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch) | |
| tree | ed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs5300/p4-formatter/data/test0.out | |
| download | misc-undergrad-main.tar.gz misc-undergrad-main.zip | |
Diffstat (limited to 'Homework/cs5300/p4-formatter/data/test0.out')
| -rw-r--r-- | Homework/cs5300/p4-formatter/data/test0.out | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Homework/cs5300/p4-formatter/data/test0.out b/Homework/cs5300/p4-formatter/data/test0.out new file mode 100644 index 0000000..12b25f6 --- /dev/null +++ b/Homework/cs5300/p4-formatter/data/test0.out @@ -0,0 +1,40 @@ +Parsing data/test0.c + + + +Building abstract syntax tree + +Undefined symbol on line 12: print +Undefined symbol on line 16: print + +Formatted code: + +int a, b; +int c[3]; + +int fie() +{ + print(a); +} + +int foo(int a) +{ + print(a); +} + +int add(int a[], int b) +{ + int c, z; + c -= 3; + if (c || b < 3 || !!!(false) || b > 12 + z < 14 + 3 - 2 * 1) + { + c -= 3 + 8; + b--; + { + } + z = (a[0] + c[2] - (b + a * 3)); + } +} + + +Process finished with exit code 0 |
