Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
rachana192837 wants to merge1 commit intostroll-script:main
base:main
Choose a base branch
Loading
fromrachana192837:feature/newfeatureiadded

Conversation

@rachana192837
Copy link

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

@rachana192837
Copy link
Author

i hope these built in functions might be helpful , review it and tell if any changes is required.

@LiamWJH
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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

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 reacted with thumbs up emoji

@rachana192837
Copy link
Author

the program is not running!! The interpreter is missing!!

@LiamWJH
Copy link
Collaborator

the program is not running!! The interpreter is missing!!

Just to clarify what did you try to run? To run the program you must do
'''python stroll.py''' in the src folder

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@rachana192837@LiamWJH@rakshith1928

[8]ページ先頭

©2009-2025 Movatter.jp