/
AbstrSyn.pco
46 lines (44 loc) · 2.72 KB
/
AbstrSyn.pco
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
`*-----------------------------------*`
`* >>>Pico<<< *`
`* Theo D'Hondt *`
`* VUB Programming Technology Lab *`
`* ©1997 *`
`*-----------------------------------*`
`------------------------------------------------abstract-syntax-`
` <expression> ::= <number> `
` <expression> ::= <fraction> `
` <expression> ::= <text> `
` <expression> ::= <table> `
` <expression> ::= <function> `
` <expression> ::= <native> `
` <expression> ::= <variable> `
` <expression> ::= <application> `
` <expression> ::= <tabulation> `
` <expression> ::= <definition> `
` <expression> ::= <assignment> `
` <expression> ::= <void> `
` `
` <number> ::= NBR <number> `
` <fraction> ::= FRC <fraction> `
` <text> ::= TXT <text> `
` <table> ::= TAB <table> `
` <function> ::= FUN <identifier> <arguments> `
` <expression> <dictionary> `
` <native> ::= NAT <identifier> <function> `
` <variable> ::= VAR <identifier> `
` <application> ::= APL <identifier> <arguments> `
` <tabulation> ::= TBL <identifier> <expression> `
` <definition> ::= DEF <invocation> <expression> `
` <assignment> ::= SET <invocation> <expression> `
` <dictionary> ::= DCT <identifier> <expression> <dictionary> `
` <void> ::= VOI `
` `
` <identifier> ::= <text> `
` `
` <arguments> ::= <table> `
` <arguments> ::= <invocation> `
` `
` <invocation> ::= <variable> `
` <invocation> ::= <application> `
` <invocation> ::= <tabulation> `
`------------------------------------------------abstract-syntax-`