syntax error for extra semicolon
Open
Nobody has claimed this yet.
Interpreter
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
I did not expect this:
i1 : f = x -> x;
i2 : f = x -> x;;
stdio:2:11:(3): error: syntax error at ';'
Why are two semicolons an error?
i7 : ;;
stdio:7:0:(3): error: syntax error at ';'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two examples in Macaulay2 and determine whether the extra semicolon behavior is intentional or a syntax-handling bug. Locate the relevant syntax-processing entry point and establish whether the expected outcome is to accept the input or clarify the existing behavior with a regression test or documentation.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100