Reads a c-like expression from standard input and prints a visual depiction of the syntax tree.
./autogen.sh
./configure
make
make clean
or
make distclean
- gnu make
- autoconf
./exprtree -e '6+7*8/2+*a'
./exprtree -f example.txt
(+)
|
----------------------------------------
| |
(+) (*)
| |
-------------------- (a)
| |
(6) (/)
|
----------
| |
(*) (2)
|
------
| |
(7) (8)
- No checking of left operand of assignment operator.
- No checking of left operand of accessor operator
- No checking of operand of increment/decrement operator
- No checking of operand of reference operator
- No type checking of array subscript
- No typecasting
- No
sizeof
macro