40 void evalerror(
const char* filename,
int linenum,
const char* msg,
Tree exp)
42 fprintf(stderr,
"%s:%d: ERROR: %s ", filename, linenum, msg);
43 print(exp,stderr); fprintf(stderr,
"\n");
49 cerr << filename <<
':' << linenum <<
": ERROR: " << msg <<
" : " <<
boxpp(exp) << endl;
55 fprintf(stderr,
"%s:%d: WARNING: %s ", filename, linenum, msg);
56 print(exp,stderr); fprintf(stderr,
"\n");
59 void evalremark(
const char* filename,
int linenum,
const char* msg,
Tree exp)
61 fprintf(stderr,
"%s:%d: REMARK: %s ", filename, linenum, msg);
62 print(exp,stderr); fprintf(stderr,
"\n");
76 return name(
hd(n)->node().getSym());
void evalerrorbox(const char *filename, int linenum, const char *msg, Tree exp)
Tree cons(Tree a, Tree b)
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
void evalremark(const char *filename, int linenum, const char *msg, Tree exp)
const Node & node() const
return the content of the tree
void evalwarning(const char *filename, int linenum, const char *msg, Tree exp)
void setDefProp(Tree sym, const char *filename, int lineno)
int getDefLineProp(Tree sym)
void evalerror(const char *filename, int linenum, const char *msg, Tree exp)
const char * name(Symbol *sym)
Returns the name of a symbol.
void setProperty(Tree t, Tree key, Tree val)
void yyerror(const char *msg)
Symbol * symbol(const char *str)
Returns (and creates if new) the symbol of name str.
const char * getDefFileProp(Tree sym)
bool getProperty(Tree t, Tree key, Tree &val)
void print(Tree t, FILE *out)