Last change
on this file since 6955 was
4089,
checked in by abeham, 14 years ago
|
#1041
- Added project with operators to convert expression trees to protocol buffer messages
|
File size:
1.0 KB
|
Rev | Line | |
---|
[4089] | 1 | Node = "(", Terminal | Function, ")" ;
|
---|
| 2 | Function = ArithmeticFunc | LogicalFunc, Node, { Node } ;
|
---|
| 3 | ArithmeticFunc = "+" | "avg" | "cos" | "/" | "exp" | "ln" | "*" | "sin" | "-" | "tan" ;
|
---|
| 4 | LogicalFunc = "&&" | ">" | "if" | "<" | "!" | "||" ;
|
---|
| 5 | Terminal = Variable | Constant ;
|
---|
| 6 | Variable = ";", VariableName, Constant ;
|
---|
| 7 | VariableName = Alpha, { Alpha | Digit | "_" } ;
|
---|
| 8 | Alpha = "A" | "B" | "C" | "D" | "E" | "F" | "G"
|
---|
| 9 | | "H" | "I" | "J" | "K" | "L" | "M" | "N"
|
---|
| 10 | | "O" | "P" | "Q" | "R" | "S" | "T" | "U"
|
---|
| 11 | | "V" | "W" | "X" | "Y" | "Z" | "a" | "b"
|
---|
| 12 | | "c" | "d" | "e" | "f" | "g" | "h" | "i"
|
---|
| 13 | | "j" | "k" | "l" | "m" | "n" | "o" | "p"
|
---|
| 14 | | "q" | "r" | "s" | "t" | "u" | "v" | "w"
|
---|
| 15 | | "x" | "y" | "z" ;
|
---|
| 16 | Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
|
---|
| 17 | Constant = ";", [ "-" ], Digit, { Digit }, [ ".", Digit, { Digit } ], "E", [ "+" | "-" ], Digit, { Digit } ; |
---|
Note: See
TracBrowser
for help on using the repository browser.