DesModder / DesModder/DesModder
Implicit multiplication in text mode
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 134
- Forks
- 49
- Avg merge
- 5h 2m
- Merged PRs (30d)
- 15
Description
I keep wanting to use implicit multiplication in Text Mode.
IIRC, the original reasons why not were:
- If
x yis supported forx*y, then it would seem likexymight be supported, but that's a two-letter variable instead of multiplying x and y. - Problem with knowing when one line ends and the next line starts.
(2) is fixed now since it's clear with double-newline (or semicolon). (and was always a problem even without implicit multipication, e.g. a line y=f followed by a line (x+1)^2 could be parsed as y=f(x+1)^2)
(1) could be worked around by disallowing implicit identifier times identifier.
It would still be hugely beneficial to allow implicit multiplication for everything besides identifier times identifier:
y = x { x > 3 }would worky = 2x^2 + 5x + 3would work(1,2,3) twould work
Note cross would be a keyword once implemented. So y = (1,2,3) cross (4,5,6) would not be parsed like y = (1,2,3) * cross * (4,5,6)
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
The issue names Text Mode but no source files, tests, or parser entry point. Start by locating the Text Mode parser and any existing parser tests; use the listed examples and exclusions to define the accepted implicit-multiplication cases, then verify identifier handling and line-boundary behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100