8000 Tags · shyal/mu · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

vscode-v0.5.3

Toggle vscode-v0.5.3's commit message
0.16: x is NAME is a test

`x is NAME`, NAME a bare name, is a test. A helper is called on x, `x is
even` is `even(x)` and `n is not prime` is `not prime(n)`; a name the
file binds goes through `_is`, which at run time calls a function and
tests identity on anything else, so `node is leaf` calls a def leaf and
`x is p` on a value is Python's `is`; a name nothing binds is a method of
x, `c is digit` is `c.isdigit()`. none, true, false, self, cls, mu, inf,
a builtin, a helper that is a class, an attribute, a call, a subscript
and a name in brackets, `x is (f)`, stay the identity test. py2mu writes
Python's `a is b` on a name as `a is (b)`, and the formatter spaces `is`
before a bracket. The VS Code grammar (0.5.3) colours prime, substrings
and count_subarrays. The 0.16 spec, with the rule under Tests with is.

vscode-v0.5.1

Toggle vscode-v0.5.1's commit message
by= on a name the file binds indexes, a helper or builtin of that nam…

…e notwithstanding

vscode-v0.5.0

Toggle vscode-v0.5.0's commit message
0.13: block lambdas, mu, and a first block

`{p ->` ends a line and opens a block; `}` at the opener's indent closes it
and the expression continues. The head may sit on the line under a `{`
that stands alone. `{n -> expr}` on one line. Inside, `mu` is the lambda
itself. It compiles to a def with a hidden name placed before the statement
that holds it: built once in a one-line fold, and once before a fold block
too unless the body reads a name that block binds per item, when it stays
inside. A block in a one-line fold or a comprehension that reads the
loop's variable is refused. A fold block may be the value of `=` or `ret`.
`first k in lo..hi` on its own line takes a block, its last line the test,
compiled to a def passed as the key. The 0.13 spec, tests, `mu` in the IDE
keywords and the VS Code grammar (0.5.0), and max_diff added to the
grammar's helper list.

vscode-v0.4.0

Toggle vscode-v0.4.0's commit message
mu-language 0.12.4

vscode-v0.3.0

Toggle vscode-v0.3.0's commit message
make venv: a dev venv with mu and ../pydsa editable; release tests wi…

…th it

vscode-v0.1.0

Toggle vscode-v0.1.0's commit message
vscode: released as a .vsix on GitHub releases

Publisher, license, repository and keywords in package.json; a README,
CHANGELOG and LICENSE in the extension folder; .vscodeignore drops the
tests from the vsix. The vscode workflow packages on every pull request
that touches vscode/ and, on a vscode-v<version> tag, attaches the vsix
to a GitHub release. Neither registry: the Marketplace needs a Microsoft
account and Open VSX an Eclipse account, and neither would open one.
0