8000 Explain a batch of syntax errors by akoskovacs · Pull Request #9 · kexhq/oops · GitHub
[go: up one dir, main page]

Skip to content

Explain a batch of syntax errors - #9

Merged
akoskovacs merged 1 commit into
mainfrom
explanations-8
Nov 22, 2026
Merged

akoskovacs merged 1 commit into
mainfrom
explanations-8

Conversation

@akoskovacs
Copy link
Copy Markdown
Contributor

Twelve more explanations under codes/, all parse errors.

  • KEXEP-0158: if cond do, where a block if has no do
  • KEXEP-0001: a keyword, such as break, used as a function name
  • KEXEP-0078: match n without do
  • KEXEP-0081: a match left without its end
  • KEXEP-0044: a parameter list left without its )
  • KEXEP-0121: Ruby's => in a map entry
  • KEXEP-0122: a map left without its }
  • KEXEP-0069: two expressions in one ${...}
  • KEXEP-0118: &double in place of ~double
  • KEXEP-0101: a one-letter capital name for a variable
  • KEXEP-0011: a one-letter name for a type
  • KEXEP-0102: let total: Integer with no value

Each broken example gives the output shown with kex built from main (371bbdff), and each fix compiles and runs.

if with do, a keyword as a function name, a match without do or end, an unclosed parameter list or map, a Ruby => in a map, two expressions in one ${...}, &name in place of ~name, a one-letter variable or type name, and a let with no value. Every example was checked with kex built from main.
@akoskovacs
akoskovacs merged commit e2d8385 into main Nov 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0