File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ includeStatement: INCLUDE StringLiteral SEMICOLON;
6363breakStatement : BREAK SEMICOLON ;
6464continueStatement : CONTINUE SEMICOLON ;
6565endStatement : END SEMICOLON ;
66- forStatement : FOR scalarType Identifier IN (setExpression | LBRACKET rangeExpression RBRACKET | Identifier ) body=statementOrScope;
66+ forStatement : FOR scalarType Identifier IN (setExpression | LBRACKET rangeExpression RBRACKET | expression ) body=statementOrScope;
6767ifStatement : IF LPAREN expression RPAREN if_body=statementOrScope (ELSE else_body=statementOrScope)?;
6868returnStatement : RETURN (expression | measureExpression)? SEMICOLON ;
6969whileStatement : WHILE LPAREN expression RPAREN body=statementOrScope;
Original file line number Diff line number Diff line change 1414the :obj:`~parser.parse` function.
1515"""
1616
17- __version__ = "0.4.2 "
17+ __version__ = "0.5.0 "
1818
1919from . import ast , parser
2020from .parser import parse
Original file line number Diff line number Diff line change 11antlr4-python3-runtime
2- openqasm3 == 0.4 .0
2+ openqasm3 >= 0.5 .0
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ include_package_data = True
2727install_requires =
2828 antlr4-python3-runtime # __ANTLR_VERSIONS__
2929 importlib_metadata; python_version<'3.10'
30- openqasm3[parser]==0.4 .0
30+ openqasm3[parser]>=0.5 .0
3131
3232[options.packages.find]
3333exclude = tests*
You can’t perform that action at this time.
0 commit comments