qpfiffer / lair

A small Den implementation written in C.
MIT License
19 stars 5 forks source link

Dictionary/Array Syntax #4

Open qpfiffer opened 8 years ago

qpfiffer commented 8 years ago
  1. Execute RHS of statement
  2. Find LHS parent object in current scope, otherwise recurse upwards until found. If it doesn't exist throw an exception or error or whatever the hell they are.
  3. create/update the right side of the parent's scope operator. This should work ad infinitum. So:
    testScope.blah.foo : ! + 'a' 'b'
neauoire commented 8 years ago

I added an overview of all main patterns here: https://github.com/MuteLang/DenLang/tree/master Let me know what you think.