Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
jmg
/
gitmirror
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
39
Wiki
Trabalho
Ver a proveniência
Examples: A few minor changes
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.12.0
Erez Sh
há 3 anos
ascendente
f7cde8766d
cometimento
7fdd59849b
3 ficheiros alterados
com
23 adições
e
2356 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+3
-0
examples/advanced/create_ast.py
+20
-0
examples/standalone/README.md
+0
-2356
examples/standalone/json_parser.py
+ 3
- 0
examples/advanced/create_ast.py
Ver ficheiro
@@ -1,4 +1,7 @@
"""
Creating an AST from the parse tree
===================================
This example demonstrates how to transform a parse-tree into an AST using `lark.ast_utils`.
create_transformer() collects every subclass of `Ast` subclass from the module,
+ 20
- 0
examples/standalone/README.md
Ver ficheiro
@@ -0,0 +1,20 @@
# Standalone example
To initialize, cd to this folder, and run:
````bash
./create_standalone.sh
```
Or:
```bash
python -m lark.tools.standalone json.lark > json_parser.py
````
Then run using:
```bash
python json_parser_main.py <path-to.json>
```
+ 0
- 2356
examples/standalone/json_parser.py
A apresentação das diferenças no ficheiro foi suprimida por ser demasiado grande
Ver ficheiro
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar