Frontend-for-free

Latest version: v0.5.0

Safety actively analyzes 621803 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.2

1. Allow various kinds of definition marks:
- `:=`
- `::=`: classic BNF style
- `:`: ANTRL style

2. Bootstrap via the package itself and remove dep `rbnf-rts`.

0.4

1. Definition mark changed from `:=` to `:`.

A production `a := b;` changed to `a : b;`

2. Action enhancements

Given the example

list[a] : a { [$0] }
| list[a] a { $1.append($2); $2 }


We now have following new actions:

1. Reading attributes(`a.b`).
2. Combining statements(`a; b`).

However, due to the Python codegen issues, **reading attributes** will be slow. Python is a *statement-first* language, to support serious codegen, we need ANF transformation, which leads to an intermediate variable for `$1.append`. We haven't implemented register reallocation optimization to address it.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.