mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
grammar refactoring: build_visitor fixed & visitors tested
This commit is contained in:
parent
3c2d496a85
commit
e4802896bd
35 changed files with 118128 additions and 91770 deletions
|
|
@ -1,9 +1,8 @@
|
|||
struct StructWithRef =
|
||||
& @Int._ // unique pointer to any-sized array (default size is zero ??)
|
||||
& @Int_
|
||||
|
||||
decl test_memory : Unit -> Unit
|
||||
def test_memory = {
|
||||
const @unique_ref1 <- @5 // move unique reference
|
||||
const @unique_ref1 <- @(5)
|
||||
var @unique_ref2 <- @(Array.of 1 2 3)
|
||||
// ?? reference to constant value ??
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue