Skip to content
/ slug Public

it's python but optionally typed and transpiled to lua

License

Notifications You must be signed in to change notification settings

nilq/slug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slug

it's kinda python, but optionally typed and transpiled to lua

currently works

a num = 10
b num = 10 + a
fun add (a num, b num) num:
  a + b
  
fun idk (a num): 1
fun hm (a, b): 10
fun ay num: 0
fun c: 0

a = fun num: 10
b = fun: 10
a =
  fun (b num) num:
    b + 10
b any .. = [
  a = fun (b num) num:
    b + 10
]

currently doesn't works

arrays of arrays .. somewhy the parser fails to find any parent array's closing delimeter.

  • chained assignments

  • nested arrays

also works ...

skipping fun call type checking by explicitly declaring the fun as any ..

a any = fun (b num) num:
    b + 10

c = a "feature hrm"

About

it's python but optionally typed and transpiled to lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages