Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#39) Hi Team, The root cause of #35 is as follows https://github.com/openqasm/qe-qasm/blob/main/lib/Parser/QasmParser.y#L338-L342 Here `IIS` and `ISS` points to the same buffer, as `std::getline` moves the pointer to the next line, we got the wrong line number when directly parsing string. Thus we just need to reset the position of `IIS` to make `QASM::QasmPreprocessor::Instance().Preprocess(IIS)` work as expected I did not find any test codes in this repo to directly test `QasmParser.y`. I'm willing to add some tests and wish to know the proper way to do so. Thanks, Yilun
- Loading branch information