* Clean up the imploded parse tree. Quotes around strings are
removed, paths are absolutised relative to the path containing the expression we just parsed, and integer literals are converted to actual integers.
This commit is contained in:
parent
e537844f4e
commit
9f8f39aa3c
4 changed files with 57 additions and 11 deletions
|
|
@ -1,15 +1,10 @@
|
|||
#ifndef __PARSER_H
|
||||
#define __PARSER_H
|
||||
|
||||
#include <string>
|
||||
#include <aterm2.h>
|
||||
|
||||
#include "util.hh"
|
||||
#include "fix-expr.hh"
|
||||
|
||||
|
||||
typedef ATerm Expr;
|
||||
|
||||
Expr parseExprFromFile(const Path & path);
|
||||
Expr parseExprFromFile(Path path);
|
||||
|
||||
|
||||
#endif /* !__PARSER_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue