Logo Search packages:      
Sourcecode: pccts version File versions  Download package

main.cpp

/* 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;
}

Generated by  Doxygen 1.6.0   Back to index