Comments (4)
We are not currently looking to change the semantics of the MOO language as it stands in the current iteration of the server. You may consider using one of the aforementioned patches on your own version, or using a fork.
Please open a separate issue for additional prepositions.
from toaststunt.
So the latter, compound assignment operators, is something I've been really interested in for some time. It is surprising that it seems to take a back seat in moo especially as they are pretty well standard in modern languages, even not so modern if I am honest.
If I understand things correctly (probably not) this would be modifications of code_gen.cc and disassemble.cc?
I think it would also require work on the parser.y
file. I remember from the old days there was a patch for the classic LambdaMOO that would allow you to write x += 1
in MOO-code and then it would be parsed into x = x + 1
before it would be compiled into BYTECODE, but I can't seem to find it anymore.
I realise this can largely be managed with verb args of any any any and then doing a syntax check there, and likewise probably something can be lifted to use regexp for the compound assignment within the moo itself, but primarily, for both of tese I was wondering if there was a design reason to leave these out?
I used to add some too.. It shouldn't be a problem as long as you append them to the end of the list. See warning in db_verbs.cc
from toaststunt.
there was a patch for the classic LambdaMOO that would allow you to write x += 1 in MOO-code and then it would be parsed into x = x + 1 before it would be compiled into BYTECODE
Yeah! I thought I remembered this too! I should start building a compilation of these, I have a few floating around... Old patches that is, not that they're of much use these days other than as a study piece, but some of the old goodies seem to fade away day by day.
Good to know on the prep front, glad I was not missing anything there.
I did some further reading and have somewhat revised my opinion of files, I think I'm still on the right track with code_gen.cc, but am leaning towards ast.cc and unparse.
See I thought parser.y too, but that deals more with slots than anything, from what I can see EG OBJ, FLOAT etc.
from toaststunt.
There's at least these where you can find some old stuff:
- https://lisdude.com/moo
- https://sourceforge.net/p/lambdamoo/patches/
- https://www.xythian.com/moo/server/
I've found an old patch that also changes some aspects of the language that may guide as a reference to what files are involved. See attachment
scattered_for_stunt.patch
from toaststunt.
Related Issues (20)
- MySQL / MOO SQL bf? HOT 8
- Network Buffer Overflows Closes TLS Connections
- toobj() HOT 4
- Feature request for the ability to force-invalidate WAIFs HOT 2
- Curl Functionality HOT 3
- Background Threads Suspend / Threading Issues HOT 6
- random() - range doesn't allow negative numbers HOT 1
- [Feature Request] Bloom Filter Set/List Intersection HOT 4
- Sqlite_Execute will not return runtime errors.
- Build fails on macOS Monterey/12.0.1 HOT 2
- Thoughts on the preserve newlines patch
- Can't build if LOG_COMMANDS defined
- :user_disconnected not being called with correct connection object on server restart HOT 1
- Expose verb AST with new verb_ast builtin. HOT 1
- Crashes with TLS defined HOT 8
- Large telnet option sequences are not properly processed
- Binding in listen()
- Feature Request: Support for Web Sockets
- Panic with sqlite_query HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toaststunt.