Exemple #1
0
def _additions():
   print "Creating additions DFA..."
   return ((matchIgnoreCase("put_line"), tokens.PutLine),)
Exemple #2
0
def _reservedWords():
   print "Creating reserved words DFA..."
   return ((matchIgnoreCase("abort"), tokens.Abort),
           (matchIgnoreCase("abs"), tokens.Abs),
           (matchIgnoreCase("accept"), tokens.Accept),
           (matchIgnoreCase("access"), tokens.Access),
           (matchIgnoreCase("all"), tokens.All),
           (matchIgnoreCase("and"), tokens.And),
           (matchIgnoreCase("array"), tokens.Array),
           (matchIgnoreCase("at"), tokens.At),

           (matchIgnoreCase("begin"), tokens.Begin),
           (matchIgnoreCase("body"), tokens.Body),

           (matchIgnoreCase("case"), tokens.Case),
           (matchIgnoreCase("constant"), tokens.Constant),

           (matchIgnoreCase("declare"), tokens.Declare),
           (matchIgnoreCase("delay"), tokens.Delay),
           (matchIgnoreCase("delta"), tokens.Delta),
           (matchIgnoreCase("digits"), tokens.Digits),
           (matchIgnoreCase("do"), tokens.Do),

           (matchIgnoreCase("else"), tokens.Else),
           (matchIgnoreCase("elsif"), tokens.Elsif),
           (matchIgnoreCase("end"), tokens.End),
           (matchIgnoreCase("entry"), tokens.Entry),
           (matchIgnoreCase("exception"), tokens.Exception),
           (matchIgnoreCase("exit"), tokens.Exit),

           (matchIgnoreCase("for"), tokens.For),
           (matchIgnoreCase("function"), tokens.Function),

           (matchIgnoreCase("generic"), tokens.Generic),
           (matchIgnoreCase("goto"), tokens.Goto),

           (matchIgnoreCase("if"), tokens.If),
           (matchIgnoreCase("in"), tokens.In),
           (matchIgnoreCase("is"), tokens.Is),

           (matchIgnoreCase("limited"), tokens.Limited),
           (matchIgnoreCase("loop"), tokens.Loop),

           (matchIgnoreCase("mod"), tokens.Mod),

           (matchIgnoreCase("new"), tokens.New),
           (matchIgnoreCase("not"), tokens.Not),
           (matchIgnoreCase("null"), tokens.Null),

           (matchIgnoreCase("of"), tokens.Of),
           (matchIgnoreCase("or"), tokens.Or),
           (matchIgnoreCase("others"), tokens.Others),
           (matchIgnoreCase("out"), tokens.Out),

           (matchIgnoreCase("package"), tokens.Package),
           (matchIgnoreCase("pragma"), tokens.Pragma),
           (matchIgnoreCase("private"), tokens.Private),
           (matchIgnoreCase("procedure"), tokens.Procedure),

           (matchIgnoreCase("raise"), tokens.Raise),
           (matchIgnoreCase("range"), tokens.Range),
           (matchIgnoreCase("record"), tokens.Record),
           (matchIgnoreCase("rem"), tokens.Rem),
           (matchIgnoreCase("renames"), tokens.Renames),
           (matchIgnoreCase("return"), tokens.Return),
           (matchIgnoreCase("reverse"), tokens.Reverse),

           (matchIgnoreCase("select"), tokens.Select),
           (matchIgnoreCase("separate"), tokens.Separate),
           (matchIgnoreCase("subtype"), tokens.Subtype),

           (matchIgnoreCase("task"), tokens.Task),
           (matchIgnoreCase("terminate"), tokens.Terminate),
           (matchIgnoreCase("then"), tokens.Then),
           (matchIgnoreCase("type"), tokens.Type),

           (matchIgnoreCase("use"), tokens.Use),

           (matchIgnoreCase("when"), tokens.When),
           (matchIgnoreCase("while"), tokens.While),
           (matchIgnoreCase("with"), tokens.With),

           (matchIgnoreCase("xor"), tokens.Xor))