* Basic grammar and parser for the Fix language. We use libsglr and
friends to do the parsing. The parse table is embedded in the Fix executable using bin2c, which converts an arbitrary file into a C character array.
This commit is contained in:
parent
4d728f6a36
commit
b95a3dc45b
6 changed files with 298 additions and 7 deletions
15
src/fix-ng/parser.hh
Normal file
15
src/fix-ng/parser.hh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef __PARSER_H
|
||||
#define __PARSER_H
|
||||
|
||||
#include <string>
|
||||
#include <aterm2.h>
|
||||
|
||||
#include "util.hh"
|
||||
|
||||
|
||||
typedef ATerm Expr;
|
||||
|
||||
Expr parseExprFromFile(const Path & path);
|
||||
|
||||
|
||||
#endif /* !__PARSER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue