mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-29 10:18:46 +00:00
changes for new grammar, fixes
This commit is contained in:
parent
91f9affadc
commit
3106a64949
35 changed files with 605 additions and 550 deletions
|
|
@ -1,8 +1,8 @@
|
|||
struct StructWithRef =
|
||||
& @Int_0
|
||||
struct \struct-with-ref =
|
||||
& @\int`0
|
||||
|
||||
decl test_memory : -> Unit
|
||||
def test_memory = {
|
||||
const unique_ref1 <- Int._new: 5
|
||||
var unique_ref2 <- Array.of: 1 2 3
|
||||
decl test-memory : -> \unit
|
||||
def test-memory = {
|
||||
const unique-ref1 <- \int..new: 5
|
||||
var unique-ref2 <- \array..of: 1 2 3
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue