about summary refs log tree commit diff
path: root/src/fix-ng/parser.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-29T16·05+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-29T16·05+0000
commitb95a3dc45bcbbe8a0985bab82146ed00afcf0239 (patch)
tree75ec3e901b3af65a814770aae807c790d20eff1d /src/fix-ng/parser.hh
parent4d728f6a36c83ff684426788df775b385fae9e88 (diff)
* 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.

Diffstat (limited to 'src/fix-ng/parser.hh')
-rw-r--r--src/fix-ng/parser.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fix-ng/parser.hh b/src/fix-ng/parser.hh
new file mode 100644
index 000000000000..80e266f2d5ae
--- /dev/null
+++ b/src/fix-ng/parser.hh
@@ -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 */