summaryrefslogtreecommitdiff
path: root/docs/c1/grammar/zbnf.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/c1/grammar/zbnf.txt')
-rw-r--r--docs/c1/grammar/zbnf.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/c1/grammar/zbnf.txt b/docs/c1/grammar/zbnf.txt
index 551c319..002e027 100644
--- a/docs/c1/grammar/zbnf.txt
+++ b/docs/c1/grammar/zbnf.txt
@@ -22,7 +22,7 @@ SkipLine : ( ~LF )* [LF]
OneDatum : BareString | CladDatum
-BareString : ( '.' | '+' | '-' | DIGIT ) ( BareChar | '.' )*
+BareString : SpecBareChar ( BareChar | JoinChar )*
| BareChar+
CladDatum : PipeStr | QuoteStr | HashExpr | QuoteExpr | List
@@ -33,16 +33,17 @@ HashExpr : '#' ( RuneExpr | LabelExpr | HashDatum )
QuoteExpr : "'" Datum | '`' Datum | ',' Datum
List : ParenList | SquareList | BraceList
+SpecBareChar : '+' | '-' | JoinChar | DIGIT
+
BareChar : ALPHA | DIGIT
- | '!' | '$' | '%' | '*' | '+'
- | '-' | '/' | '<' | '=' | '>'
- | '?' | '@' | '^' | '_' | '~'
+ | '!' | '$' | '%' | '*' | '+' | '-' | '/'
+ | '<' | '=' | '>' | '?' | '^' | '_' | '~'
PipeStrChar : ~( '|' | '\' )
QuotStrChar : ~( '"' | '\' )
StringEsc : '\' | '|' | '"' | ( HTAB | SP )* LF ( HTAB | SP )*
- | 'a' | 'b' | 't' | 'n' | 'v' | 'f' | 'r' | 'e'
+ | '0' | 'a' | 'b' | 't' | 'n' | 'v' | 'f' | 'r' | 'e'
| 'x' HexByte+ ';'
| 'u' UnicodeSV ';'