mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
DOCS: Add format expressions to the grammar;
This commit is contained in:
parent
59343d71d5
commit
5daf266366
@ -23,6 +23,7 @@ ws: WS ;
|
||||
dot: ".";
|
||||
quot: '"' ;
|
||||
pipe: '|' ;
|
||||
percent: "%" ;
|
||||
star: "*" ;
|
||||
plus: "+" ;
|
||||
minus: "-" ;
|
||||
@ -127,6 +128,12 @@ copy_expression: bareword, tuple ;
|
||||
call_expression: bareword, lparen, [arglist], rparen ;
|
||||
```
|
||||
|
||||
#### Format Expression
|
||||
|
||||
```
|
||||
format_expr: str, percent, lparen, [arglist], rparen ;
|
||||
```
|
||||
|
||||
#### Non Operator Expression
|
||||
|
||||
```
|
||||
@ -134,6 +141,7 @@ non_operator_expr: literal
|
||||
| grouped
|
||||
| macrodef
|
||||
| module_def
|
||||
| format_expression
|
||||
| copy_expression
|
||||
| call_expression ;
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user