rubyx/lib/vool
Torsten Rüger 17f87f7464 Starting to fix resolve mechanism
resolve had the wrong approach, sort of class based oo
It took methods from "derived" types and just used them
To be correct, those methods would have to be recompiled for the current type, rubyx is type, not class based.
Started on that, still soe strange hang though

Later, type and method analysis may reveal "compatible" types (down only off course) where one could use the exact same code, but that is phase 2
2019-09-29 12:06:37 +03:00
..
assignment.rb Renaming Vool exppressions rightly 2019-08-19 11:33:12 +03:00
basic_values.rb Builtin is no more, final conversions done 2019-09-13 20:34:41 +03:00
builtin.rb check for redefining of methods and forbid 2019-09-24 21:20:12 +03:00
call_statement.rb Renaming Vool exppressions rightly 2019-08-19 11:33:12 +03:00
class_expression.rb rename singleton_class to single_class and misc 2019-09-24 17:25:19 +03:00
class_method_expression.rb rename singleton_class to single_class and misc 2019-09-24 17:25:19 +03:00
if_statement.rb fix to_s (mostly) 2019-09-19 20:48:21 +03:00
ivar_assignment.rb Fix vool assignments after call rework 2019-08-16 20:39:08 +03:00
lambda_expression.rb Remove separate block_compiler lists 2019-09-28 17:24:10 +03:00
local_assignment.rb vool working after message change 2019-08-22 21:24:02 +03:00
macro_expression.rb A good start on the macro idea 2019-08-25 14:40:59 +03:00
method_expression.rb check for redefining of methods and forbid 2019-09-24 21:20:12 +03:00
README.md Some docs 2019-08-06 17:42:15 +03:00
return_statement.rb A good start on the macro idea 2019-08-25 14:40:59 +03:00
send_statement.rb Starting to fix resolve mechanism 2019-09-29 12:06:37 +03:00
statement.rb Make to_mom a 2 stage process 2019-09-24 15:44:33 +03:00
statements.rb Make to_mom a 2 stage process 2019-09-24 15:44:33 +03:00
super_statement.rb Fix super as statement 2019-08-19 18:48:13 +03:00
variables.rb rename singleton_class to single_class and misc 2019-09-24 17:25:19 +03:00
while_statement.rb Renaming Vool exppressions rightly 2019-08-19 11:33:12 +03:00
yield_statement.rb renaming mom builtin to macro 2019-09-11 20:33:49 +03:00

VOOL

Virtual Object Oriented Language

in other words, ruby without the fluff.

Possibly later other languages can compile to this level and use rx-file as code definition.

Syntax tree

Vool is a layer with concrete syntax tree, just like the ruby layer above. Vool is just simplified, without fluff, see below.

The next layer down is the Mom, Minimal object Machine, which uses an instruction list.

The nodes of the syntax tree are all the things one would expect from a language, if statements and the like. There is no context yet, and actual objects, representing classes and methods, will be created on the way down.

Fluff

Ruby has lots of duplication to help programmers to write less. An obvious example is the existence of until, which really means if not. Other examples, some more impactful are:

  • No implicit blocks, those get passed as normal arguments (the last)
  • No splats
  • no case
  • no elseif (no unless, no ternary operator)
  • no global variables.

Parfait objects

The compilation process ends up creating (parfait) objects to represent things like classes, types and constants. This is done in this layer, on the way down to MOM (ie not during init)