Open rturrado opened 6 months ago
This is what I think it is happening here:
libqasm
analyzes v1 and v3 programs. And, in order to do that, it has a version parser, i.e., a parser that is dedicated to parsing the version only. So we first parse the version and then call the v1 or the v3 parser.If, in a near future, we drop v1, we may not have this issue anymore.
For instance, mistyping
version
asvrsion
returns::1:1: mismatched input 'vrsion' expecting {NEW_LINE, ';', 'version'}
, andError: :1:1: syntax error
.