Burp
Functions
interpreter.c File Reference
#include "interpreter.h"
Include dependency graph for interpreter.c:

Functions

void printTree (Tree tree)
 
char * getLine (Tree tree, int line)
 
struct warning_messagegetWarnings ()
 
void freeWarnings ()
 
int interprete (int line, Tree tree, arena *arena, robot *robot)
 

Function Documentation

◆ freeWarnings()

void freeWarnings ( )

Free all Warnings

◆ getLine()

char* getLine ( Tree  tree,
int  line 
)

Return the command in a printable way of the command executed at line [ line ] with the syntax tree [ tree ]

◆ getWarnings()

struct warning_message* getWarnings ( )

Return a structure that contain every warnings found during last interpretation

◆ interprete()

int interprete ( int  line,
Tree  tree,
arena arena,
robot robot 
)

interprete the line [ line ] of the script, corresponding at the file where come from the syntax tree [ tree ] controlling the robot [ robot ] in the context [ arena ]

◆ printTree()

void printTree ( Tree  tree)

Print syntax tree [ tree ] (for debuging)