This project is read-only.
      #region 1-Terminals - in PascalCase
         var Id           = new IdentifierTerminal("Identifier");
         var IntNum       = new NumberLiteral("",   NumberOptions.IntOnly);
         var RealNum      = new NumberLiteral("",   NumberOptions.None);

         var Assignment = ToTerm(":=");
         var Terminator = ToTerm(";");
         var OpenParen  = ToTerm("(");
         var CloseParen = ToTerm(")");
         var Comment    = new RegexBasedTerminal("Comment",      @"//.*\n");

         MarkPunctuation(Terminator, Assignment, OpenParen, CloseParen, Comment);
      #endregion


Last edited Nov 7, 2012 at 5:56 PM by pgeerkens, version 1

Comments

No comments yet.