From df63684cb57f2da750f3c198605ca0ae7ae3ebc5 Mon Sep 17 00:00:00 2001 From: Terence Parr <> Date: Wed, 13 Sep 1995 19:39:54 -0500 Subject: [PATCH] auto commit for import --- testcpp/8/main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 testcpp/8/main.cpp diff --git a/testcpp/8/main.cpp b/testcpp/8/main.cpp new file mode 100755 index 0000000..ad324c1 --- /dev/null +++ b/testcpp/8/main.cpp @@ -0,0 +1,14 @@ +/* Simple main() to call a parser in another file */ + +#include "tokens.h" // define TokenType +#include "Expr.h" // define parser +#include "DLGLexer.h" // define scanner +#include "PBlackBox.h" // Define ParserBlackBox + +int main() +{ + ParserBlackBox p(stdin); + + p.parser()->e(); /* start parsing at rule 'e' of that parser */ + return 0; +} -- 2.40.0