RioChndr / jaksel-language

Jaksel Script, Programming language very modern and Indonesian style
MIT License
926 stars 91 forks source link

feature: add procedure syntax and example #14

Closed RayhanHamada closed 2 years ago

RayhanHamada commented 2 years ago

This pr should add procedure for reusable code invocations. also add some example

btw, awesome side project sir hehe.

RioChndr commented 2 years ago

Thank you for PR, I love it. hahaha. Looks like We should add parameter too

RayhanHamada commented 2 years ago

Agreed. Gonna work on it if i had time this evening. This looks interesting.

RioChndr commented 2 years ago

thank you very much 👍

Can't wait to merge this PR

RayhanHamada commented 2 years ago

Already add basic function feature. However, for the parameter currently it can only accepts variables and number literals, and native boolean (true/false, excluding "worth it" or "positive vibes", etc). For other literals like string literal currently is not supported, as it need more complex regex pattern to handles them.

RioChndr commented 2 years ago

Nice, good job bro. This is the first procedure concept on this language. Thank your for contribution 👍👍