rubyx/lib/vool
Torsten Rüger d3ed29520e Some docs
2019-08-06 17:42:15 +03:00
..
assignment.rb first risc level block test working 2018-07-30 20:11:52 +03:00
basic_values.rb Some docs and to_s testing 2018-09-01 15:54:25 +03:00
block_statement.rb push the callable into the callable compiler 2018-07-30 10:26:11 +03:00
call_statement.rb Some docs and to_s testing 2018-09-01 15:54:25 +03:00
class_method_statement.rb Using MetaClass to compile class methods into 2019-02-17 14:37:50 +02:00
class_statement.rb Using MetaClass to compile class methods into 2019-02-17 14:37:50 +02:00
if_statement.rb moved all the normalize stuff over to the ruby layer 2018-07-19 14:47:29 +03:00
ivar_assignment.rb fix ruby variables 2018-07-20 14:22:26 +03:00
local_assignment.rb fx ruby send args 2018-07-20 20:06:14 +03:00
method_statement.rb push the callable into the callable compiler 2018-07-30 10:26:11 +03:00
README.md Some docs 2019-08-06 17:42:15 +03:00
return_statement.rb use the return jump to jump to the return sequence 2018-08-02 17:36:39 +03:00
send_statement.rb abstract CallStatement base class, just like in ruby 2018-07-30 14:45:37 +03:00
statement.rb class Methods down to vool #24 2019-02-14 19:24:12 +02:00
statements.rb fix the statement moming 2018-11-02 17:27:46 -07:00
variables.rb better tests for class sending 2019-02-23 18:17:26 +02:00
while_statement.rb moved all the normalize stuff over to the ruby layer 2018-07-19 14:47:29 +03:00
yield_statement.rb remove the code_builder 2018-08-19 13:16:07 +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)