Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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
/malPublic
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

BQN implementation#619

Open
dancek wants to merge47 commits intokanaka:master
base:master
Choose a base branch
Loading
fromdancek:bqn
Open

BQN implementation#619

dancek wants to merge47 commits intokanaka:masterfromdancek:bqn

Conversation

dancek
Copy link

This is an implementation inBQN, a modern array programming language. The code is idiomatic where possible but sometimes overly verbose. Also, parts of the MAL guide forced a non-array-y implementation – but I still followed the guide.

I didn't implement optional functionality; specificallywith-meta would be quite annoying to add due to all data types and every match expression needing to be changed accordingly. The language doesn't have builtin support for properties, hashmaps or such.

CBQN is currently the main implementation of the language, and it's the only one supported as documented in README. Adapting to another implementation would be very simple, though, as the_while_ 2-modifier could be implemented in a line of BQN and the terminal goodies are not strictly necessary.

TODO: add varargs support to dissoc and assoc
The MAL suggestion is to use a regex for tokenizing. But that's boring(and BQN doesn't have regex support yet). So I wrote a recursivetokenizer, but now self-hosting tokenizes long enough pieces of code tocause a stack overflow. So rewrite as a loop instead.
@dancek
Copy link
Author

Anything I can do to get this merged?

@dancek
Copy link
Author

@kanaka is there anything I could do to help get this PR merged?

@dancek
Copy link
Author

Still hoping to get this merged!

Copy link
Owner

@kanakakanaka left a comment

Choose a reason for hiding this comment

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

Hello@dancek sorry for the very slow reply (I've been unable to work on this project for the past couple of years but I'm am able to again). If you're still interested in getting this merged upstream I would ask that you do the following:

  • Rebase the code onto the current HEAD
  • The recommended process has changed slightly: the eval_ast is no longer seperate from eval. It would be good if you could update to follow the new structure.
  • Add your implementation toIMPLS.yml and make sure that the CI tests all pass for your implementation.

@dancek
Copy link
Author

Glad to hear from you! Thanks for the pointers. It may take me a while but I do intend to finish this PR.

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

@kanakakanakakanaka requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dancek@kanaka

[8]ページ先頭

©2009-2025 Movatter.jp