You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Now, looking at the errors, it seems that the parser error comes from ANTLR, while the analyzer error comes from the version parser. I.e., the parsing API is not using the version parser, but the analyzing API is using it.
I should have a look and see if this is an expected behaviour or not.
For instance, mistyping
version
asvrsion
returns::1:1: mismatched input 'vrsion' expecting {NEW_LINE, ';', 'version'}
, andError: :1:1: syntax error
.The text was updated successfully, but these errors were encountered: