annotate samples/compilerbug_003.tp @ 223:25db1c7c7300

Added addition and multiplication precedence level operators to grammar
author Michael Pavone <pavone@retrodev.com>
date Sun, 29 Dec 2013 14:25:38 -0800
parents 86ebdfb33711
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
1 {
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
2 foo <- { 42 }
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
3 #{
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
4 qux <- foo:
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
5 bar <- #{
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
6
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
7 baz <- {
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
8 foo:
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
9 }
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
10
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
11 }
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
12
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
13 main <- {
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
14 print: (string: (bar baz))
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
15 }
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
16 }
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
17 }
86ebdfb33711 Add sample for fixed bug
Mike Pavone <pavone@retrodev.com>
parents:
diff changeset
18