Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Add examples #5

Open
andrefpoliveira opened this issue Aug 31, 2020 · 16 comments
Open

Add examples #5

andrefpoliveira opened this issue Aug 31, 2020 · 16 comments
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest help wanted Extra attention is needed

Comments

@andrefpoliveira
Copy link
Owner

andrefpoliveira commented Aug 31, 2020

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 andrefpoliveira added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 31, 2020
@prashanth-up
Copy link

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 ?

@andrefpoliveira
Copy link
Owner Author

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

@prashanth-up
Copy link

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?

@andrefpoliveira
Copy link
Owner Author

@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

@prashanth-up
Copy link

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

@andrefpoliveira
Copy link
Owner Author

Ups my bad you are right!!

@prashanth-up
Copy link

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

@andrefpoliveira
Copy link
Owner Author

@prashanth-up thank you very much!

@UjwalKandi
Copy link
Contributor

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

@andrefpoliveira
Copy link
Owner Author

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

@Zaidtech
Copy link
Contributor

Zaidtech commented Oct 1, 2020

@andrefpoliveira awesome language, can I also add some examples

@andrefpoliveira
Copy link
Owner Author

@Zaidtech of course!!

@FaizAlam
Copy link

FaizAlam commented Oct 8, 2020

@andrefpoliveira can I add some examples !!

@andrefpoliveira
Copy link
Owner Author

@FaizAlam sure!! 😄

@punitsakre23
Copy link
Contributor

I like to contribute and add some examples

@punitsakre23
Copy link
Contributor

Done bro. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants