From 7334c4b65d6722911c20af34f830ddc6c69b57e5 Mon Sep 17 00:00:00 2001 From: JJ Date: Thu, 16 May 2024 20:26:51 -0700 Subject: std: switch from chr to char --- docs/SYNTAX.md | 6 ++---- docs/book/SYNTAX.html | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/SYNTAX.md b/docs/SYNTAX.md index 4e57b04..c6e96f6 100644 --- a/docs/SYNTAX.md +++ b/docs/SYNTAX.md @@ -248,7 +248,7 @@ The following identifiers are in use by the standard prelude: - logic: `not` `and` `or` `xor` `shl` `shr` `div` `mod` `rem` - logic: `+` `-` `*` `/` `<` `>` `<=` `>=` `==` `!=` `is` - async: `async` `await` -- types: `int` `uint` `float` `i\d+` `u\d+` +- types: `int` `uint` `float` `i[\d+]` `u[\d+]` - `f32` `f64` `f128` - `dec64` `dec128` - types: `bool` `byte` `char` `str` @@ -364,9 +364,7 @@ Signature ::= Ident Generics? ('(' Type (',' Type)* ')')? (':' Type)? ``` If ::= 'if' Expr 'then' Body ('elif' Expr 'then' Body)* ('else' Body)? When ::= 'when' Expr 'then' Body ('elif' Expr 'then' Body)* ('else' Body)? -Try ::= 'try' Body - ('except' Ident ('as' Ident)? (',' Ident ('as' Ident)?)*) 'then' Body)+ - ('finally' Body)? +Try ::= 'try' Body ('with' Pattern (',' Pattern)* 'then' Body)+ ('finally' Body)? Match ::= 'match' Expr ('of' Pattern (',' Pattern)* ('where' Expr)? 'then' Body)+ While ::= 'while' Expr 'do' Body For ::= 'for' Pattern 'in' Expr 'do' Body diff --git a/docs/book/SYNTAX.html b/docs/book/SYNTAX.html index a241b74..4860718 100644 --- a/docs/book/SYNTAX.html +++ b/docs/book/SYNTAX.html @@ -378,7 +378,7 @@ of that then ...
  • logic: not and or xor shl shr div mod rem
  • logic: + - * / < > <= >= == != is
  • async: async await
  • -
  • types: int uint float i\d+ u\d+ +
  • types: int uint float i[\d]+ u[\d]+