Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added syntax for Bend programming language #3330

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

RohanVashisht1234
Copy link

No description provided.

@RohanVashisht1234
Copy link
Author

um, It has been a month, please respond whenever you are free.

# constants (true, false, null, this)
- constant: "\\b(true|false|True|False)\\b"
# constants (types)
- type: "\\b(ud|str|int|float|obj|fib|bool|pat|type|any)\\b\\??"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried looking at this file but I do not think these types are in Bend:
https://github.com/HigherOrderCO/Bend/blob/main/docs/builtins.md

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry added -type thing, but can we keep true false? because people do use true false in bend by declaring this on their side.

Copy link
Contributor

@niten94 niten94 Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I did not mean removing the pattern matching true and false but I realized there is null and this in the comment even though those are not highlighted. The types at the link I referenced can still be higlighted.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, fixed that because the null and this isn't a actual type in bend afaik

# extra operators
- symbol.operator: "(\\+|\\-|\\/|%|\\*|>>|<<|\\\\|\\^|&|~|!>)"
# Comparision operators
- symbol.operator: "(==|!=|<=?|>=?|\\bis\\b|\\?\\?)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried looking at documentation and examples a bit but is the is operator in Bend syntax?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I have removed is

@niten94
Copy link
Contributor

niten94 commented Jul 4, 2024

I do not use Bend but I tried reviewing a bit. I do not think there is much people familiar with Bend using micro so I do not think the pull request can be easily accepted and merged. It may be better making a plugin and requesting to add it in @Neko-Box-Coder's plugin channel:
https://github.com/Neko-Box-Coder/unofficial-plugin-channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants