Macaulay2 / Macaulay2/M2

syntax error for extra semicolon

Open
#4,067 2 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.