Pansy icon indicating copy to clipboard operation
Pansy copied to clipboard

Add examples

Open andrefpoliveira opened this issue 5 years ago β€’ 16 comments

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!

andrefpoliveira avatar Aug 31 '20 20:08 andrefpoliveira

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 ?

prashanth-up avatar Sep 02 '20 18:09 prashanth-up

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")

andrefpoliveira avatar Sep 02 '20 18:09 andrefpoliveira

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 avatar Sep 02 '20 18:09 prashanth-up

@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

andrefpoliveira avatar Sep 02 '20 18:09 andrefpoliveira

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

prashanth-up avatar Sep 02 '20 19:09 prashanth-up

Ups my bad you are right!!

andrefpoliveira avatar Sep 02 '20 19:09 andrefpoliveira

Seems accurate now, I'll send in a PR with some basic code Examples for Pansy around tomorrowπŸ˜„

prashanth-up avatar Sep 02 '20 19:09 prashanth-up

@prashanth-up thank you very much!

andrefpoliveira avatar Sep 02 '20 19:09 andrefpoliveira

Do we also have to edit the main README.md file in the examples folder that shows the list of examples?

UjwalKandi avatar Sep 07 '20 17:09 UjwalKandi

@UjwalKandi it would be awesome if you did that :)

andrefpoliveira avatar Sep 07 '20 17:09 andrefpoliveira

@andrefpoliveira awesome language, can I also add some examples

Zaidtech avatar Oct 01 '20 16:10 Zaidtech

@Zaidtech of course!!

andrefpoliveira avatar Oct 01 '20 18:10 andrefpoliveira

@andrefpoliveira can I add some examples !!

FaizAlam avatar Oct 08 '20 09:10 FaizAlam

@FaizAlam sure!! πŸ˜„

andrefpoliveira avatar Oct 08 '20 10:10 andrefpoliveira

I like to contribute and add some examples

punitsakre23 avatar Oct 31 '20 09:10 punitsakre23

Done bro. Thanks

punitsakre23 avatar Oct 31 '20 17:10 punitsakre23