schrodinger.application.desmond.enhanced_sampling.mexpLexer module

class schrodinger.application.desmond.enhanced_sampling.mexpLexer.mexpLexer(input=None, state=None)

Bases: schrodinger.application.desmond.antlr3.recognizers.Lexer

grammarFileName = 'mexp.g'
antlr_version = (3, 1, 3, 9223372036854775807)
antlr_version_str = '3.1.3 Mar 18, 2009 10:09:25'
__init__(input=None, state=None)
reportError(err)

Report a recognition problem.

This method sets errorRecovery to indicate the parser is recovering not parsing. Once in recovery mode, no errors are generated. To get out of recovery mode, the parser must successfully match a token (after a resync). So it will go:

  1. error occurs

  2. enter recovery mode, report error

  3. consume until token found in resynch set

  4. try to resume parsing

  5. next match() will reset errorRecovery mode

If you override, make sure to update syntaxErrors if you care about that.

mT__45()
mT__46()
mT__47()
mT__48()
mT__49()
mT__50()
mT__51()
mT__52()
mT__53()
mT__54()
mT__55()
mT__56()
mT__57()
mT__58()
mLIT()
mIDENT()
mEQ()
mEXP()
mADDOP()
mSUBTROP()
mMULTOP()
mDIVOP()
mPOPEN()
mPCLOSE()
mBOPEN()
mBCLOSE()
mCOPEN()
mCCLOSE()
mSTRING()
mSEMI()
mCOLON()
mCOMMA()
mWS()
mCOMMENT()
mNEWLINE()
mALPHA()
mDIGIT()
mTokens()

This is the lexer entry point that sets instance var ‘token’

DFA12_eot = [-1, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 48, 10, 10, 10, 10, 10, 10, 10, 10, 10, 58, 10, 10, -1, 10, 10, 10, 10, 10, 10, 10, 68, 10, -1, 10, 10, 10, 73, 74, 10, 10, 10, 10, -1, 79, 10, 10, 10, -1, -1, 83, 84, 10, 10, -1, 10, 10, 89, -1, -1, 10, 10, 10, 93, -1, 10, 10, 97, -1, 10, 10, 100, -1, 10, 10, -1, 10, 10, 10, 106, 10, -1, 108, -1]
DFA12_eof = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
DFA12_min = [9, 101, 101, 97, 105, 102, 117, 104, 108, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 97, 114, 99, 109, 109, 114, 102, 48, 116, 101, 115, 116, 105, 108, 101, 101, 115, 48, 101, 116, -1, 111, 110, 101, 105, 101, 97, 110, 48, 116, -1, 114, 105, 102, 48, 48, 99, 115, 114, 115, -1, 48, 118, 97, 102, -1, -1, 48, 48, 101, 105, -1, 97, 108, 48, -1, -1, 95, 111, 108, 48, -1, 109, 110, 48, -1, 117, 101, 48, -1, 116, 116, -1, 112, 97, 117, 48, 116, -1, 48, -1]
DFA12_max = [125, 116, 105, 97, 105, 110, 117, 104, 108, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 97, 114, 99, 109, 109, 114, 116, 122, 116, 101, 115, 116, 105, 108, 101, 101, 115, 122, 101, 116, -1, 111, 110, 101, 105, 101, 97, 110, 122, 116, -1, 114, 105, 102, 122, 122, 99, 115, 114, 115, -1, 122, 118, 97, 102, -1, -1, 122, 122, 101, 105, -1, 97, 108, 122, -1, -1, 95, 111, 108, 122, -1, 111, 110, 122, -1, 117, 101, 122, -1, 116, 116, -1, 112, 97, 117, 122, 116, -1, 122, -1]
DFA12_accept = [-1, -1, -1, -1, -1, -1, -1, -1, -1, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 12, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, 13, 14, -1, -1, -1, -1, 5, -1, -1, -1, 1, 11, -1, -1, -1, -1, 8, -1, -1, -1, 10, -1, -1, -1, 7, -1, -1, 9, -1, -1, -1, -1, -1, 3, -1, 2]
DFA12_special = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
DFA12_transition = [[27, 27, -1, -1, 27, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 27, -1, 23, 27, -1, -1, -1, -1, 17, 18, 15, 13, 26, 14, -1, 16, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 25, 24, -1, 11, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 19, -1, 20, 12, -1, -1, 10, 10, 6, 2, 8, 4, 10, 10, 5, 10, 10, 10, 10, 3, 10, 10, 10, 10, 1, 7, 10, 10, 10, 10, 10, 10, 21, -1, 22], [29, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 28], [30, -1, -1, -1, 31], [32], [33], [35, -1, -1, -1, -1, -1, -1, -1, 34], [36], [37], [38], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [39], [40], [41], [42], [43], [44], [45, -1, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 46], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [49], [50], [51], [52], [53], [54], [55], [56], [57], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [59], [60], [], [61], [62], [63], [64], [65], [66], [67], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [69], [], [70], [71], [72], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [75], [76], [77], [78], [], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [80], [81], [82], [], [], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [85], [86], [], [87], [88], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [], [], [90], [91], [92], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [], [95, -1, 94], [96], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [], [98], [99], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [], [101], [102], [], [103], [104], [105], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [107], [], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, -1, -1, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, -1, -1, -1, -1, 10, -1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10], []]
class DFA12(recognizer, decisionNumber, eot, eof, min, max, accept, special, transition)

Bases: schrodinger.application.desmond.antlr3.dfa.DFA

schrodinger.application.desmond.enhanced_sampling.mexpLexer.main(argv, stdin=<_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>, stdout=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, stderr=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>)