Commit f896a5c9 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

add int, int64_t, float, and double default types, no designator

parent 9f6a00ee
Loading
Loading
Loading
Loading
+5 −1

File changed.

Preview size limit exceeded, changes collapsed.

+119 −115
Original line number Diff line number Diff line
@@ -90,29 +90,31 @@ T__88=89
T__89=90
T__90=91
T__91=92
LBRACKET=93
RBRACKET=94
LBRACE=95
RBRACE=96
LPAREN=97
RPAREN=98
COLON=99
SEMICOLON=100
DOT=101
COMMA=102
EQUALS=103
ARROW=104
MINUS=105
Constant=106
Whitespace=107
Newline=108
Integer=109
Identifier=110
RealNumber=111
TimingLiteral=112
StringLiteral=113
LineComment=114
BlockComment=115
T__92=93
T__93=94
LBRACKET=95
RBRACKET=96
LBRACE=97
RBRACE=98
LPAREN=99
RPAREN=100
COLON=101
SEMICOLON=102
DOT=103
COMMA=104
EQUALS=105
ARROW=106
MINUS=107
Constant=108
Whitespace=109
Newline=110
Integer=111
Identifier=112
RealNumber=113
TimingLiteral=114
StringLiteral=115
LineComment=116
BlockComment=117
'OPENQASM'=1
'include'=2
'QCOR_EXPECT_TRUE'=3
@@ -126,95 +128,97 @@ BlockComment=115
'angle'=11
'fixed'=12
'bool'=13
'const'=14
'let'=15
'||'=16
'gate'=17
'CX'=18
'U'=19
'gphase'=20
'measure'=21
'barrier'=22
'inv'=23
'pow'=24
'ctrl'=25
'@'=26
'reset'=27
'~'=28
'!'=29
'>'=30
'<'=31
'>='=32
'<='=33
'=='=34
'!='=35
'&&'=36
'|'=37
'^'=38
'&'=39
'<<'=40
'>>'=41
'+'=42
'*'=43
'/'=44
'%'=45
'++'=46
'--'=47
'sin'=48
'cos'=49
'tan'=50
'arctan'=51
'arccos'=52
'arcsin'=53
'exp'=54
'ln'=55
'sqrt'=56
'rotl'=57
'rotr'=58
'popcount'=59
'lengthof'=60
'+='=61
'-='=62
'*='=63
'/='=64
'&='=65
'|='=66
'~='=67
'^='=68
'<<='=69
'>>='=70
'in'=71
'if'=72
'else'=73
'for'=74
'while'=75
'break'=76
'continue'=77
'end'=78
'kernel'=79
'def'=80
'return'=81
'#pragma'=82
'length'=83
'stretch'=84
'boxas'=85
'boxto'=86
'stretchinf'=87
'delay'=88
'rotary'=89
'defcalgrammar'=90
'defcal'=91
'"openpulse"'=92
'['=93
']'=94
'{'=95
'}'=96
'('=97
')'=98
':'=99
';'=100
'.'=101
','=102
'='=103
'->'=104
'-'=105
'int64_t'=14
'double'=15
'const'=16
'let'=17
'||'=18
'gate'=19
'CX'=20
'U'=21
'gphase'=22
'measure'=23
'barrier'=24
'inv'=25
'pow'=26
'ctrl'=27
'@'=28
'reset'=29
'~'=30
'!'=31
'>'=32
'<'=33
'>='=34
'<='=35
'=='=36
'!='=37
'&&'=38
'|'=39
'^'=40
'&'=41
'<<'=42
'>>'=43
'+'=44
'*'=45
'/'=46
'%'=47
'++'=48
'--'=49
'sin'=50
'cos'=51
'tan'=52
'arctan'=53
'arccos'=54
'arcsin'=55
'exp'=56
'ln'=57
'sqrt'=58
'rotl'=59
'rotr'=60
'popcount'=61
'lengthof'=62
'+='=63
'-='=64
'*='=65
'/='=66
'&='=67
'|='=68
'~='=69
'^='=70
'<<='=71
'>>='=72
'in'=73
'if'=74
'else'=75
'for'=76
'while'=77
'break'=78
'continue'=79
'end'=80
'kernel'=81
'def'=82
'return'=83
'#pragma'=84
'length'=85
'stretch'=86
'boxas'=87
'boxto'=88
'stretchinf'=89
'delay'=90
'rotary'=91
'defcalgrammar'=92
'defcal'=93
'"openpulse"'=94
'['=95
']'=96
'{'=97
'}'=98
'('=99
')'=100
':'=101
';'=102
'.'=103
','=104
'='=105
'->'=106
'-'=107
+839 −825

File changed.

Preview size limit exceeded, changes collapsed.

+5 −5
Original line number Diff line number Diff line
@@ -28,11 +28,11 @@ public:
    T__74 = 75, T__75 = 76, T__76 = 77, T__77 = 78, T__78 = 79, T__79 = 80, 
    T__80 = 81, T__81 = 82, T__82 = 83, T__83 = 84, T__84 = 85, T__85 = 86, 
    T__86 = 87, T__87 = 88, T__88 = 89, T__89 = 90, T__90 = 91, T__91 = 92, 
    LBRACKET = 93, RBRACKET = 94, LBRACE = 95, RBRACE = 96, LPAREN = 97, 
    RPAREN = 98, COLON = 99, SEMICOLON = 100, DOT = 101, COMMA = 102, EQUALS = 103, 
    ARROW = 104, MINUS = 105, Constant = 106, Whitespace = 107, Newline = 108, 
    Integer = 109, Identifier = 110, RealNumber = 111, TimingLiteral = 112, 
    StringLiteral = 113, LineComment = 114, BlockComment = 115
    T__92 = 93, T__93 = 94, LBRACKET = 95, RBRACKET = 96, LBRACE = 97, RBRACE = 98, 
    LPAREN = 99, RPAREN = 100, COLON = 101, SEMICOLON = 102, DOT = 103, 
    COMMA = 104, EQUALS = 105, ARROW = 106, MINUS = 107, Constant = 108, 
    Whitespace = 109, Newline = 110, Integer = 111, Identifier = 112, RealNumber = 113, 
    TimingLiteral = 114, StringLiteral = 115, LineComment = 116, BlockComment = 117
  };

  explicit qasm3Lexer(antlr4::CharStream *input);
+7 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading