Skip to content
This repository was archived by the owner on Aug 9, 2020. It is now read-only.

Syntax ideas

Mario Montoya edited this page Aug 5, 2020 · 6 revisions

numeros

1 1.1f 1.1d

bools

true, false

strings

"hello", 'hello', """hello""" "hello {1 + 2}"

dates

dt"2001-01-10T23_02_10" d"2001-01-10" t"23_02_10"

nums = Vec[it:i32;1, 2, 3] nums = 1 nums = [1]

Tables

Fac = Table[| key id:i32, code, cust, salesman|]

Table = [| id:i32, name:Str; 1, "hello"; 2, "world" |]

Table = [< id:Int = 1, 2; name:Str = "hello", "world"

]

Enums

enum Color do Blue: Int Red: (String, String) Green

Case define

Color types COLOR const color vars color_blue

Rel named

rel City do pk id:Int name:Str

Clone this wiki locally