Jomy10 / Jomy10/nootlang

Error message for missing semicolons

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Consider the following example:
```
noot!("Hello") noot!(" World")
```

This will output `Hello`, without any other errors. This is because after parsing the function call, the parser does not check if there are more tokens left to parse, it will simple move on to the next statement.

There should be an error "missing semicolon" instead.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the parser code that handles function calls and checking how it processes tokens after a statement. Reproduce the example from the issue and verify that an additional token without a semicolon produces a missing-semicolon error; done means the invalid input no longer runs silently.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.