Giter VIP home page Giter VIP logo

Comments (4)

distantorigin avatar distantorigin commented on June 5, 2024 2

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.

tvdijen avatar tvdijen commented on June 5, 2024

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.

NathanTech7713 avatar NathanTech7713 commented on June 5, 2024

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.

tvdijen avatar tvdijen commented on June 5, 2024

There's at least these where you can find some old stuff:

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.