- Notifications
You must be signed in to change notification settings - Fork10
Added new built-in functions including min, max, print, not, push-back#11
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Added new built-in functions including min, max, print, not, push-back#11
Uh oh!
There was an error while loading.Please reload this page.
Conversation
rachana192837 commentedNov 16, 2025
i hope these built in functions might be helpful , review it and tell if any changes is required. |
LiamWJH commentedNov 16, 2025
Firstly thank you so much for your effort! However, I have got some mildly bad news for you... So from this month we have changed the mass of the core features like print scan and etc to be in the core.sr file in the lib directory, the way it operates is you declare a function there and write a native code snippet so we can import it later using the use statement. I am deeply sorry 😢 |
rachana192837 commentedNov 16, 2025
No worries!!If print and other features like push-back and scan is already in core.sr , then i'll remove that and add some more features like dictionary |
LiamWJH commentedNov 16, 2025
Btw u don't have to remove existing features :D and since native code writing is a hard process reach out to me on discord if your program does not run or break! |
rachana192837 commentedNov 16, 2025
the program is not running!! The interpreter is missing!! |
LiamWJH commentedNov 17, 2025
Just to clarify what did you try to run? To run the program you must do |
Pull Request Title
Add built-in functions and dictionary support to Calx
Description
This PR introduces several new built-in functions and expands the Calx language with native dictionary support. These additions improve usability and extend Calx's capability for real-world scripting use cases.
New Features Added
🔹 Built-in Functions
min – returns the minimum of values
max – returns the maximum of values
print – prints output to console
not – boolean negation
push-back – append element to list