mys-lang / mys

The Mys programming language - an attempt to create a statically typed Python-like language that produces fast binaries. See https://mys-lang.org for more information.
Other
132 stars 5 forks source link

Nice! #5

Closed ghost closed 3 years ago

ghost commented 3 years ago

Currently building my own language in Python here. How did you implement functions and flow-control. I am awed at what you have achieved with MYS.

eerimoq commented 3 years ago

Hi!

Nice job with HEX LANG =)

Mys is currently using Python's ast-module to transform the source code to an abstract syntax tree (AST). The AST is then converted into C++ source code, which is then compiled. This is fairly easy to do as Python and C++ are similar (classes, functions, exceptions, etc. exist in both languages).

Later on I might generate C source code for potentially smaller binaries, or even implement support for Mys in LLVM, but that's a lot of work and is currently out of scope.

Right now I'm just trying to design Mys the language. Hopefully it will be simple and intuitive, just as Python is in most cases. Feel free to help out =)

ghost commented 3 years ago

Hello to you. :) Thank you very much! :) Hmm, I'll have a look at those parts of your code, but good to know that I can use the AST module. Thought it only built trees of Python code. 🤔 Haha yes, same here though. Yup, totally understand, Hex is also still in it's infancy. And yes! You bet I will!!! Same goes for you. 😉

ghost commented 3 years ago

Hi Eriq, I am currently extremely busy with other things in my life, I wilk continue my work on Hex and help out with Mys once things become more relaxed. Hope you understand. :) Got a lot going on at the moment.🤪

eerimoq commented 3 years ago

No problem, I understand =)