numbas / numbas/editor

A library of common pattern restrictions

Open
#570 0 comments 1 reaction 0 assignees View on GitHub
wishlist
Dominant language
JavaScript
Stars
60
Forks
62
PR merge metrics
No merged PRs in 30d

Description

Pattern restrictions are incredibly fiddly. It would be nice to have a library of ready-made patterns for common things.

I'll just start dumping patterns here:

Complex number ins real-imaginary form `a/c+(b/c)i` or `(a+bi)/c`, where a, b and c are integers:
```
[int: `+-integer:$n] `@ (
(`+-((int/int`?))`? + `+-((int`?/int`?)*i)`?)
`|
(`+-(int)`? + `+-(int`? * i)`?)/int`?
)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by locating the editor's existing pattern-restriction handling and review the complex-number example in issue #570. Confirm the scope and supported common patterns with maintainers; done means a defined, usable library of ready-made restrictions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.