Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Update master #136

Merged
merged 828 commits into from
Apr 8, 2024
Merged

[WIP] Update master #136

merged 828 commits into from
Apr 8, 2024

Conversation

wvlothuizen
Copy link
Collaborator

For now, this is just to see how far develop has evolved from master

rturrado and others added 30 commits January 17, 2024 15:12
Add visit_expression to factorize some common code for the different types of expressions.
This package doesn't seem well maintained and libqasm works fine on
Windows without. Moreover, it's creating issues with Python 3.12
(impossible to install libqasm).
FetchContent func-gen/v1x_and_v3x_generators branch.
Update to the latest version of func-gen/v1x_and_v3x_generators branch.
- Variable declaration and initialization in cqasm v3 parser
- New types in v3: bool, int, float, axis
- Arrays in v3

- v3x::AnalyzeTreeGenAstVisitor is an instance of tree-gen generated visitor base class

- msvc-runtime pip dependency on Windows
Add expression arithmetic to the parser.
Float literals can end with a dot.

Add expression arithmetic visitor methods to BuildTreeGenAstVisitor.

Update res/v3x/parsing files.
Due to changes in the lexer and the parser.

Update antlr4-cppruntime Conan package version.

We have to add 'Wno-error=unused-parameter' to the Clang compilation.
As CqasmParser::expressionSempred defined _localctx parameter but does not use it.
Add expression arithmetic to the parser.
Float literals can end with a dot.

Add expression arithmetic visitor methods to BuildTreeGenAstVisitor.

Update res/v3x/parsing files.
Due to changes in the lexer and the parser.

Update antlr4-cppruntime Conan package version.

We have to add 'Wno-error=unused-parameter' to the Clang compilation.
As CqasmParser::expressionSempred defined _localctx parameter but does not use it.
…ns' into v3-extended-arithmetic_expressions

# Conflicts:
#	src/v3x/CqasmParser.g4
Implement BuildTreeGenAstVisitor visitor methods for the syntactic AST.
Update to the latest version of func-gen.
… operators.

Update to the latest version of func-gen/v1x_and_v3x_generators.
Which changes constinit const variables from std::string to std::string_view.
Which changes constinit const variables from std::string to std::string_view.
Due to changes in the lexer and the parser.
Update to the latest version of func-gen.
Add cqasm-functions files with the current code generated by func-gen.

Add some initial unit tests for AnalyzeTreeGenAstVisitor::visit_function_call(name, arguments).
Add MockAnalyzer.
Add ValuesEqMatcher.

Change src/v3x/Analyzer class methods to virtual.
So that we can mock this class.

TODO: reimplement cqasm-functions using templated code.
TODO: add integration tests.
TODO: add unit tests for cqasm-functions.
TODO: add integration tests.
TODO: add unit tests for cqasm-functions.
rturrado and others added 29 commits March 21, 2024 11:45
…ators-with-variables

V3 Extended: Arithmetic Expressions with variable arguments
…ith-an-incorrect-range

# Conflicts:
#	conan/profiles/tests-debug-gcc-linux-x64
#	conan/profiles/tests-release-gcc-linux-x64
…are-reported-with-an-incorrect-range

Fix issue #200
- Removed all v10, v1x directories (from include, src, test, res, and python).
  And all references to them (CMakeLists.txt, README.txt).
- Removed compat build flag as well, as it was only used for v1x.
- Removed conda folder.
- Emptied doc folder.
Removed Flex/Bison dependencies.
Removed Flex/Bison dependencies.
Remove compat build flag references.
Add some integration tests for version.
Rename some res/v3x/parsing/version folders.
…tHub action to install node 16.20.0.

Trying to fix Python tests: inject wheel module to conan virtual environment.
…tHub action to install node 16.20.0.

Trying to fix Python tests: inject wheel module to conan virtual environment.
…tHub action to install node 16.20.0.

Trying to fix Python tests: inject wheel module to conan virtual environment.
…pten profile.

Trying to fix Python tests: inject wheel module to conan virtual environment.
…elop

Fix GitHub Actions JS and Python macos/x64 jobs
@rturrado rturrado merged commit 4a012b9 into master Apr 8, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants