QuTech-Delft / QuTech-Delft/libqasm

[Frontend] Parsing and analyzing the same file with a syntactic error can return different messages

Open
#179 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
23
Forks
18
PR merge metrics
No merged PRs in 30d

Description

For instance, mistyping version as vrsion returns:

  • for parsing: :1:1: mismatched input 'vrsion' expecting {NEW_LINE, ';', 'version'}, and
  • for analyzing: Error: :1:1: syntax error.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported vrsion input through both the parsing and analyzing paths, then inspect where their syntax diagnostics are produced. Done means the same syntactic error yields consistent messages in both paths, with regression coverage for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.