Commit 57e667d5 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

added c-like for loop, return statement to global statements for interop with qasm3 handler

parent 29ac720d
Loading
Loading
Loading
Loading
+4 −1

File changed.

Preview size limit exceeded, changes collapsed.

+55 −53
Original line number Diff line number Diff line
@@ -92,29 +92,30 @@ T__90=91
T__91=92
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
T__94=95
LBRACKET=96
RBRACKET=97
LBRACE=98
RBRACE=99
LPAREN=100
RPAREN=101
COLON=102
SEMICOLON=103
DOT=104
COMMA=105
EQUALS=106
ARROW=107
MINUS=108
Constant=109
Whitespace=110
Newline=111
Integer=112
Identifier=113
RealNumber=114
TimingLiteral=115
StringLiteral=116
LineComment=117
BlockComment=118
'OPENQASM'=1
'include'=2
'QCOR_EXPECT_TRUE'=3
@@ -192,33 +193,34 @@ BlockComment=117
'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
'range'=78
'break'=79
'continue'=80
'end'=81
'kernel'=82
'def'=83
'return'=84
'#pragma'=85
'length'=86
'stretch'=87
'boxas'=88
'boxto'=89
'stretchinf'=90
'delay'=91
'rotary'=92
'defcalgrammar'=93
'defcal'=94
'"openpulse"'=95
'['=96
']'=97
'{'=98
'}'=99
'('=100
')'=101
':'=102
';'=103
'.'=104
','=105
'='=106
'->'=107
'-'=108
+3 −0
Original line number Diff line number Diff line
@@ -261,6 +261,9 @@ public:
  virtual void enterLoopStatement(qasm3Parser::LoopStatementContext * /*ctx*/) override { }
  virtual void exitLoopStatement(qasm3Parser::LoopStatementContext * /*ctx*/) override { }

  virtual void enterCLikeLoopStatement(qasm3Parser::CLikeLoopStatementContext * /*ctx*/) override { }
  virtual void exitCLikeLoopStatement(qasm3Parser::CLikeLoopStatementContext * /*ctx*/) override { }

  virtual void enterControlDirectiveStatement(qasm3Parser::ControlDirectiveStatementContext * /*ctx*/) override { }
  virtual void exitControlDirectiveStatement(qasm3Parser::ControlDirectiveStatementContext * /*ctx*/) override { }

+4 −0
Original line number Diff line number Diff line
@@ -341,6 +341,10 @@ public:
    return visitChildren(ctx);
  }

  virtual antlrcpp::Any visitCLikeLoopStatement(qasm3Parser::CLikeLoopStatementContext *ctx) override {
    return visitChildren(ctx);
  }

  virtual antlrcpp::Any visitControlDirectiveStatement(qasm3Parser::ControlDirectiveStatementContext *ctx) override {
    return visitChildren(ctx);
  }
+832 −826

File changed.

Preview size limit exceeded, changes collapsed.

Loading