Open andrefpoliveira opened 4 years ago
Awesome Language you've made here. I was looking to contribute but I couldn't find how to run the .pansy file to check my outputs. I tried running an if-else on CLI but line-breaks are not accounted well there. Any suggestions how ?
Hey @prashanth-up! First of all, thank you very much for trying to contribute! π it means a lot to me!
You are right, I have put the command in the middle of the others so it is not explicit. I will change that so it more visible!
The command should be: run("examples/.../code.pansy")
Worked like a charm. It was my bucket list item to create my own programming language too.π
Although It seems with improvement this parser could be very promising.
My code gives a Runtime Error: Argument must be a list
when I try to return len("Pansy")
which accepts a string.
Am I missing something here?
@prashanth-up it is very funny to make one :) I strongly advise it! Yeah. Currently I had it only to accept lists. But I can add string support aswell
Just going around Github and taking notes on how to make one.
Actually in your README it says len(arg) - Returns the length of the string arg
I guess it's list instead of string
Ups my bad you are right!!
Seems accurate now, I'll send in a PR with some basic code Examples for Pansy around tomorrowπ
@prashanth-up thank you very much!
Do we also have to edit the main README.md file in the examples folder that shows the list of examples?
@UjwalKandi it would be awesome if you did that :)
@andrefpoliveira awesome language, can I also add some examples
@Zaidtech of course!!
@andrefpoliveira can I add some examples !!
@FaizAlam sure!! π
I like to contribute and add some examples
Done bro. Thanks
Hey π When trying my programming language you are more than welcome to submit your code files here on the folder
examples
so others can check it out!Please make sure you follow the structure of the rest of the other texts because I have a CI support that will verify everything is ok π
Don't forget to update the README.md aswell!
Thanks and have fun!