mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-25 18:49:50 -04:00
DOCS: Add the list and map expressions to our grammar.
This commit is contained in:
parent
1b744ab883
commit
d40f30dcf9
@ -49,6 +49,8 @@ import_keyword: "import" ;
|
|||||||
include_keyword: "include" ;
|
include_keyword: "include" ;
|
||||||
as_keyword: "as" ;
|
as_keyword: "as" ;
|
||||||
macro_keyword: "macro" ;
|
macro_keyword: "macro" ;
|
||||||
|
map_keyword: "map" ;
|
||||||
|
filter_keyword: "filter" ;
|
||||||
module_keyword: "module" ;
|
module_keyword: "module" ;
|
||||||
mod_keyword: "mod" ;
|
mod_keyword: "mod" ;
|
||||||
out_keyword: "out" ;
|
out_keyword: "out" ;
|
||||||
@ -129,6 +131,13 @@ call_expression: bareword, lparen, [arglist], rparen ;
|
|||||||
format_expr: str, percent, lparen, [arglist], rparen ;
|
format_expr: str, percent, lparen, [arglist], rparen ;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Functional processing expressions
|
||||||
|
|
||||||
|
```
|
||||||
|
func_op_kind: map_keyword | filter_keyword ;
|
||||||
|
processing_expr: func_op_kind, bareword, dot, bareword, expr ;
|
||||||
|
```
|
||||||
|
|
||||||
#### Include Expression
|
#### Include Expression
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -145,6 +154,7 @@ non_operator_expr: literal
|
|||||||
| format_expression
|
| format_expression
|
||||||
| include_expression
|
| include_expression
|
||||||
| copy_expression
|
| copy_expression
|
||||||
|
| processing_expr
|
||||||
| call_expression ;
|
| call_expression ;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user