YakshaLang / Yaksha

😈 Yaksha Programming Language - Offside rule + Lisp system for macros. 🐣 WIP
https://yakshalang.github.io/
GNU General Public License v3.0
201 stars 12 forks source link

Add support for constructing @nativedefine struct/classes using Curly call #89

Open JaDogg opened 4 months ago

JaDogg commented 4 months ago

Description

directive allow_native_construct

@nativedefine
class Point:
    x: int
    y: int

def main() -> int:
    a = Point{x: 1, y: 2}
    return a.x + a.y