-
## `pass`
```python
@Phylanx()
def f():
pass
```
```
---------------------------------------------------------------------------
KeyError Traceback (most…
parsa updated
5 years ago
-
Module's source parsed to AST two times:
- during import time
- during call of smart_imports.all()
Probably it is possible to implement import hook to compile & analyze one AST tree. Since smar…
-
A relative optimal AST structure can be found from computing simplex with the derived constrains on the first AST parse + copy things over.
See also https://en.wikipedia.org/wiki/Simplex_algorithm.…
-
On some occasions, a macro needs to invoke another:
```python
@macros.expr
def aif(tree, gen_sym, **kw):
# no hq[], the whole point of "aif" is to leak "it".
bindings = [q[(it, ast_litera…
-
It would be nice to have comments from expression in AST tree. Right now parser simply skips comments, and this makes it really hard to convert AST back to original expression.
-
### Subject
[Stage]: Synthesis.
### Describe the bug
Flow terminates at yosys synthesis stage.
### Expected Behavior
Should not terminate.
### Environment
```shell
Unknown git commit, this is n…
-
explore probable ways to navigate ast , work directly editing ast.
rather j,k, explore ways to move through trees. similar to what is there is elisp.
-
Currently, a file's imported packages are tracked in two places separately:
1) As a flat list of type `[]*ast.ImportSpec` in `ast.File.Imports`, used in cases like the loader or compiler, where one…
mvdan updated
2 months ago
-
If the following code:
```
class foo:
def bar(self): # whatever comment
pass
bar.__baz__ = None # type: ignore
```
is passed to ```horast.parse```, an AssertionError is raise…
-
Hi there!
I tried writing some code in the playground that had multiple parsing errors, but only the last error was surfaced to me:
```js
// https://kaleidawave.github.io/ezno/playground/?id=32…