File: main.cpp

package info (click to toggle)
pccts 1.33MR33-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,212 kB
  • ctags: 5,280
  • sloc: ansic: 46,051; cpp: 3,234; makefile: 957
file content (14 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
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<DLGLexer, Expr, ANTLRToken> p(stdin);

	p.parser()->e();			/* start parsing at rule 'e' of that parser */
	return 0;
}