OpenMD 3.2
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OMDLexer.h
1
2#include "antlr4-runtime.h"
4#include "omdParser/FilenameObserver.hpp"
5
6
7// Generated from OMD.g4 by ANTLR 4.13.2
8
9#pragma once
10
11
12#include "antlr4-runtime.h"
13
14
15
16
17class OMDLexer : public antlr4::Lexer {
18public:
19 enum {
20 TRUE = 1, FALSE = 2, COMPONENT = 3, MOLECULE = 4, ZCONSTRAINT = 5, RESTRAINT = 6,
21 ATOM = 7, BOND = 8, BEND = 9, TORSION = 10, INVERSION = 11, RIGIDBODY = 12,
22 CUTOFFGROUP = 13, CONSTRAINT = 14, DISTANCE = 15, FRAGMENT = 16, SEQUENCE = 17,
23 MEMBERS = 18, CENTER = 19, SATELLITES = 20, POSITION = 21, ORIENTATION = 22,
24 FLUCQ = 23, RNEMD = 24, LIGHT = 25, VELOCITYFIELD = 26, MINIMIZER = 27,
25 FIXED = 28, HARMONIC = 29, CUBIC = 30, QUARTIC = 31, POLYNOMIAL = 32,
26 MORSE = 33, GHOSTBEND = 34, UREYBRADLEY = 35, COSINE = 36, GHOSTTORSION = 37,
27 CHARMM = 38, OPLS = 39, TRAPPE = 40, AMBERIMPROPER = 41, IMPROPERCOSINE = 42,
28 CENTRALATOMHEIGHT = 43, DREIDING = 44, CHARGE = 45, NODES = 46, ASSIGNEQUAL = 47,
29 COLON = 48, COMMA = 49, QUESTIONMARK = 50, SEMICOLON = 51, DOT = 52,
30 LPAREN = 53, RPAREN = 54, LBRACKET = 55, RBRACKET = 56, LCURLY = 57,
31 RCURLY = 58, NUM_LONG = 59, NUM_INT = 60, NUM_FLOAT = 61, NUM_DOUBLE = 62,
32 CharLiteral = 63, StringLiteral = 64, ID = 65, Whitespace = 66, Newline = 67,
33 LineContinuation = 68, Comment = 69, CPPComment = 70, PREPROC_DIRECTIVE = 71
34 };
35
36 explicit OMDLexer(antlr4::CharStream *input);
37
38 ~OMDLexer() override;
39
40
41 int deferredLineCount = 0;
42 FilenameObserver* observer;
43
44 void setObserver(FilenameObserver* osv) {
45 observer = osv;
46 }
47
48 void initDeferredLineCount() {
49 deferredLineCount = 0;
50 }
51
52 void deferredNewline() {
53 deferredLineCount++;
54 }
55
56
57 std::string getGrammarFileName() const override;
58
59 const std::vector<std::string>& getRuleNames() const override;
60
61 const std::vector<std::string>& getChannelNames() const override;
62
63 const std::vector<std::string>& getModeNames() const override;
64
65 const antlr4::dfa::Vocabulary& getVocabulary() const override;
66
67 antlr4::atn::SerializedATNView getSerializedATN() const override;
68
69 const antlr4::atn::ATN& getATN() const override;
70
71 // By default the static state used to implement the lexer is lazily initialized during the first
72 // call to the constructor. You can call this function if you wish to initialize the static state
73 // ahead of time.
74 static void initialize();
75
76private:
77
78 // Individual action functions triggered by action() above.
79
80 // Individual semantic predicate functions triggered by sempred() above.
81
82};
83