Implicit multiplication not working
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 61
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Trying to do implicit multiplication like var result = "4(4)".Eval() or "(8)(8)".Eval() gives me this error:
StringMath.MathException: Unexpected token ( at position 4. Expected [EOC] at StringMath.Parser.Match(TokenType tokenType)...
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
Start by reproducing the reported expressions "4(4)".Eval() and "(8)(8)".Eval(), then trace the parser at the unexpected ( reported in the exception. Done means both expressions are accepted and evaluate as implicit multiplication, with existing expression behavior preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100