docs: align source overview with specified extensions
This commit is contained in:
1 parent
edfef82cc6
commit
94414dac3c
6 files changed
+23
-17
No files matched your search
@@ -1,5 +1,5 @@
|
||||
(* Aji source language `.aji` 0.1 (Phase 6A). Normative together with
|
||||
docs/spec/15-source-language.md. Decision record: RFC 0013.
|
||||
(* Aji source language `.aji` 0.1. Normative together with
|
||||
docs/spec/15-source-language.md. Initial decision record: RFC 0013.
|
||||
|
||||
Lexical conventions
|
||||
-------------------
|
||||
@@ -81,7 +81,7 @@ int_type = "u8" | "u16" | "u32" | "u64" | "u128" | "usize"
|
||||
block = "{" { statement } [ expr ] "}" ; (* optional tail expression: the block's value *)
|
||||
statement = "let" binding [ ":" type ] "=" expr ";"
|
||||
| "var" ident ":" type "=" ( expr | "zero" ) ";"
|
||||
| ( "ref" | "mut" ) [ "unchecked" ] ident "=" ( place | borrow_call ) ";" (* borrow binding; buffer.view(b) / graph access also bind child borrows, spec 15 §17 *)
|
||||
| ( "ref" | "mut" ) [ "unchecked" ] ident "=" ( place | borrow_call ) ";" (* borrow binding; buffer.view(b) (§17) / graph access (§8) also bind child borrows *)
|
||||
| place "=" expr ";"
|
||||
| "break" ";" | "continue" ";" | "return" [ expr ] ";" | "trap" ";"
|
||||
| expr ";"
|
||||
@@ -138,7 +138,7 @@ primary = int_lit | "true" | "false" | string
|
||||
| "(" expr ")"
|
||||
| if_expr | match_expr | block ;
|
||||
field_init = ident ":" expr ;
|
||||
borrow_call = name_path [ application ] call_args ; (* only declared `from` calls (§19), buffer.view and graph .at (§17) *)
|
||||
borrow_call = name_path [ application ] call_args ; (* only declared `from` calls (§19), buffer.view (§17) and graph .at (§8) *)
|
||||
place = ( ident | "(" place ")" ) { "." member | "[" expr [ ".." expr ] "]" } | "*" unary ;
|
||||
|
||||
int_lit = digit { digit | "_" } [ int_type ]
|
||||
|
||||
Reference in new issue
Block a user