DesModder / DesModder/DesModder

Implicit multiplication in text mode

Open
#756 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin:text-mode
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:

  1. If x y is supported for x*y, then it would seem like xy might be supported, but that's a two-letter variable instead of multiplying x and y.
  2. 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 work
  • y = 2x^2 + 5x + 3 would work
  • (1,2,3) t would 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.