-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not everything is an expression (most notably assignments) #158
Comments
Thank you for the time you've spent on this project!
macro no_ret = (func)-> "#{func}\n\treturn"
a = $no_ret (var)->
print 123 Maybe we can pick other symbols to declare a "no-implicit-return" function since |
I really want to help out with the language, however c++ is a real barrier for me. I've looked through the code and though I can get it to compile now, I simply cannot understand the C++. so there's no easy way for me to help. I'd like to write the compiler like this, for example to ensure the last line is always returned. anyway, I looked at moonscript, and it uses LPeg, which does make the parser easier to understand. I may take moonscript and try to get all of yue's tests passing on it, as an exercise.. I'll let you know if it happens. cheers! |
hi, I've been using yuescript for a little bit now so I feel pretty familiar with the language. here are some example things that I thought should have worked:
in general I really like the language. I've got a lot of ideas as well for improvements to the language:
type(val) == "function"
instead oftype(val == "function")
)lastly, the online compiler is quite valuable for seeing what yue compiles to and I really like it.
however, the text area only allows me to click on the top.
this can easily be fixed by setting
prism-editor__container
to havemin-height: 100%
. (seen below)edit: that should be 'min-height' (screenshot invalid)
cheers!
The text was updated successfully, but these errors were encountered: