mirror of https://github.com/Qiskit/qiskit.git
3075f14d66
* Handle final comments with no terminating newline in OpenQASM 2 Previously, if an OpenQASM 2 program to be parsed ended in a comment with no terminating '\n', the lexer would fail to notice the end of the file and would instead attempt to emit the second '/' of the comment introduction as a 'Slash` token. * Run `cargo fmt` * Testing extra cases --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org> --------- Co-authored-by: Luciano Bello <bel@zurich.ibm.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
README.md
qiskit._qasm2
This crate is the bulk of the OpenQASM 2 parser. Since OpenQASM 2 is a simple language, it doesn't
bother with an AST construction step, but produces a simple linear bytecode stream to pass to a
small Python interpreter (in qiskit.qasm2
). This started off life as a vendored version of the
package qiskit-qasm2
.