-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Alternative syntax for Stamp language #120
Comments
Love it! How would you do file permissions? Also, you could come up with your own name. Building a tree language is cheap so Happy to team up on a Twitch call and pair program one out. |
I guess you could add the restriction to not allow spaces in filenames, then just do |
For permission yes, I think it could be specified after the filename.
|
Maybe the presence of a shebang is enough to warrant the execution bit. |
You know what I only use that execution bit once in a blue moon. This Stamp alternative could Just playing with the demo in the Designer I like yours better than mine. It reminds me of a better https://www.gnu.org/software/emacs/manual/html_node/emacs/Dired.html |
Would you be interested in making your own repo and running with that idea? I could contribute over there. I'd love to hear how much the experience I think it would be worthwhile and would be a user myself. |
I attempted something (link at the end). Regarding my experience. Some nice things:
Less nice things:
|
@Sarcasm finally got back to this. This is awesome! I find it way better than Stamp. Feels natural. I made a few tiny changes to your code above (just changed execute methods to compile for consistency. The other reductions in code were just to temporarily make the link shorter). Named it "Clay". Playing around with it made me think of shaping a full project fluidly. I want to go through your feedback and address the individual points, but just wanted to say this is awesome. Better than Stamp and really as simple as possible. Kudos. |
Two reasons for this:
Then "childrenToString" of "a" returns simply the text block:
I find this to be a very common pattern when embedding non-tree languages in a tree language and use it often. Using methods designed for tree languages inside "blob", non-tree language blocks can be tricky, and generally just dumping those blobs is what you want, in which case "childrenToString" works great. This situation should probably be well documented in future Grammar docs. The code currently parses non-Tree language blobs like this just like any other Tree Node, and I think there are some theoretical issues that could be resolved there. It's definitely one of the places that needs some good FAQs, as I was just having a long conversation with another dev on this very topic. |
The fix makes sense, |
Right now the stamp language provides this syntax:
I'm wondering if it could not be simplified like this:
Directories can discriminated from files thanks to the final
/
.Children of directories are files.
Children of files, is file content.
Would that still qualify as a treenotation language?
The text was updated successfully, but these errors were encountered: