diff options
Diffstat (limited to 'tcllib/modules/pt/include/example/expr_ast.pic')
-rw-r--r-- | tcllib/modules/pt/include/example/expr_ast.pic | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tcllib/modules/pt/include/example/expr_ast.pic b/tcllib/modules/pt/include/example/expr_ast.pic new file mode 100644 index 0000000..6d09f2c --- /dev/null +++ b/tcllib/modules/pt/include/example/expr_ast.pic @@ -0,0 +1,11 @@ +.nf + +- Digit 0 0 | 1 + | | + +- Term 0 2 --- Number 0 2 -+- Digit 1 1 | 2 + | | | + | +- Digit 2 2 | 0 + | | +Expression 0 4 --- Factor 0 4 -+----------------------------- AddOp 3 3 | + + | | + +- Term 4 4 --- Number 4 4 --- Digit 4 4 | 5 +.fi |