diff options
Diffstat (limited to 'spec/syntax.md')
| -rw-r--r-- | spec/syntax.md | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/spec/syntax.md b/spec/syntax.md index 91e5495..affa7a1 100644 --- a/spec/syntax.md +++ b/spec/syntax.md @@ -44,40 +44,39 @@ Datum : OneDatum ( [JoinChar] OneDatum )* JoinChar : '.' | ':' -Comment : ';' ( SkipUnit | SkipLine ) +Comment : ';' ( SkipUnit | SkipLine [LF] ) SkipUnit : '~' Unit -SkipLine : ( ~LF )* [LF] +SkipLine : ( ~LF )* OneDatum : BareString | CladDatum -BareString : ( '.' | '+' | '-' | DIGIT ) ( BareChar | '.' )* - | BareChar+ +BareString : BareChar+ -CladDatum : '|' PipeStrElt* '|' - | '"' QuotStrElt* '"' +CladDatum : '|' ( PipeStrChar | '\' StringEsc )* '|' + | '"' ( QuotStrChar | '\' StringEsc )* '"' | '#' HashExpr | '(' List ')' | '[' List ']' | '{' List '}' | "'" Datum | '`' Datum | ',' Datum BareChar : ALPHA | DIGIT - | '!' | '$' | '%' | '&' | '*' | '+' | '-' | '/' + | '!' | '$' | '%' | '*' | '+' | '-' | '.' | '/' | '<' | '=' | '>' | '?' | '@' | '^' | '_' | '~' -PipeStrElt : ~( '|' | '\' ) | '\' StringEsc +PipeStrChar : ~( '|' | '\' ) -QuotStrElt : ~( '"' | '\' ) | '\' StringEsc +QuotStrChar : ~( '"' | '\' ) HashExpr : Rune [ '\' BareString | CladDatum ] | '\' BareString | '%' Label ( '%' | '=' Datum ) | CladDatum -List : Unit* [ '.' Unit ] Blank* +List : Unit* [ '&' Unit ] Blank* StringEsc : '\' | '|' | '"' | ( HTAB | SP )* LF ( HTAB | SP )* |
