mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -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: ".";
|
dot: ".";
|
||||||
quot: '"' ;
|
quot: '"' ;
|
||||||
pipe: '|' ;
|
pipe: '|' ;
|
||||||
|
percent: "%" ;
|
||||||
star: "*" ;
|
star: "*" ;
|
||||||
plus: "+" ;
|
plus: "+" ;
|
||||||
minus: "-" ;
|
minus: "-" ;
|
||||||
@ -127,6 +128,12 @@ copy_expression: bareword, tuple ;
|
|||||||
call_expression: bareword, lparen, [arglist], rparen ;
|
call_expression: bareword, lparen, [arglist], rparen ;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Format Expression
|
||||||
|
|
||||||
|
```
|
||||||
|
format_expr: str, percent, lparen, [arglist], rparen ;
|
||||||
|
```
|
||||||
|
|
||||||
#### Non Operator Expression
|
#### Non Operator Expression
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -134,6 +141,7 @@ non_operator_expr: literal
|
|||||||
| grouped
|
| grouped
|
||||||
| macrodef
|
| macrodef
|
||||||
| module_def
|
| module_def
|
||||||
|
| format_expression
|
||||||
| copy_expression
|
| copy_expression
|
||||||
| call_expression ;
|
| call_expression ;
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user