Burp
syntax_tree.h
Go to the documentation of this file.
1 #ifndef SYNTAX_TREE_H
2 #define SYNTAX_TREE_H
3 
4 #include <gmodule.h>
5 
6 /* type corresponding to a syntax analyse tree */
7 typedef GNode* Tree;
8 
9 //line
10 #define LINE "LINE"
11 //condition
12 #define COND "COND"
13 //commands
14 #define WAIT "WAIT"
15 #define POKE "POKE"
16 #define GOTO "GOTO"
17 #define IF "IF"
18 #define THEN "THEN"
19 #define ENGINE "ENGINE"
20 #define SHOOT "SHOOT"
21 
22 //operators
23 #define PLUS "+"
24 #define MINUS "-"
25 #define TIME "*"
26 #define DIV "/"
27 #define MOD "%"
28 
29 //expressions
30 #define PEEK "PEEK"
31 #define RAND "RAND"
32 #define CARDINAL "CARDINAL"
33 #define SELF "SELF"
34 #define SPEED "SPEED"
35 #define STATE "STATE"
36 #define GPSX "GPSX"
37 #define GPSY "GPSY"
38 #define ANGLE "ANGLE"
39 #define TARGETX "TARGETX"
40 #define TARGETY "TARGETY"
41 #define DISTANCE "DISTANCE"
42 #define OPERATOR "OP"
43 
44 //comparisons
45 #define INF "<"
46 #define INF_EG "<="
47 #define EG "="
48 #define DIFF "<>"
49 #define SUP_EG ">="
50 #define SUP ">"
51 
52 #endif
Tree
GNode * Tree
Definition: syntax_tree.h:7