some link for readmes
for salama-reader
This commit is contained in:
parent
1a499a1de9
commit
e64733d72b
@ -55,10 +55,10 @@ The full list is on the net and involves mostly just work.
|
||||
|
||||
### Parse ruby
|
||||
|
||||
Parse simple code, using Parslet. This has been seperated out as it's own gem, salama-reader.
|
||||
Parse simple code, using Parslet. This has been separated out as it's own gem, [salama-reader](https://github.com/salama/salama-reader).
|
||||
|
||||
Parsing is a surprisingly fiddly process, very space and order sensitive. But Parslet is great and simple
|
||||
expressions (including function definitions and calls) are starting to work.
|
||||
Parsing is a surprisingly fiddly process, very space and order sensitive. But Parslet is great and
|
||||
simple expressions (including function definitions and calls) are starting to work.
|
||||
|
||||
I spent some time on the parse testing framework, so it is safe to fiddle and add.
|
||||
In fact it is very modular and so ot is easy to add.
|
||||
|
@ -17,8 +17,9 @@ also in an similar way that objects have their classes at runtime.
|
||||
|
||||
### Layers
|
||||
|
||||
*Ast* instances get created by the salama-reader gem from source.
|
||||
Here we add compile functions to ast classes and comile the ast layer into Virtual:: objects
|
||||
*Ast* instances get created by the [salama-reader](https://github.com/salama/salama-reader) gem from
|
||||
source. Here we add compile functions to ast classes and compile the AST layer into
|
||||
Virtual::Objects and Parfait::Values
|
||||
|
||||
The main objects are Space (lots of objects), BootClass (represents a class),
|
||||
CompiledMethod (with Blocks and Instruction).
|
||||
@ -59,4 +60,3 @@ and also implement very machine dependent functionality which nevertheless is fu
|
||||
It is parsed, like any other code and always included in the resulting binary.
|
||||
**Builtin** is the part of the runtime that can not be coded in ruby (but is still needed).
|
||||
This is coded by construction CompiledMethods in code and neccesarily machine dependant.
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
### Compiling
|
||||
|
||||
The Ast (abstract syntax tree) is created by salama-reader gem and the classes defined there
|
||||
The Ast (abstract syntax tree) is created by [salama-reader](https://github.com/salama/salama-reader)
|
||||
gem and the classes defined there
|
||||
|
||||
The code in this directory compiles the AST to the virtual machine code.
|
||||
The code in this directory compiles the AST to the virtual machine code, and Parfait object structure.
|
||||
|
||||
If this were an interpreter, we would just walk the tree and do what it says.
|
||||
Since it's not things are a little more difficult, especially in time.
|
||||
|
Loading…
Reference in New Issue
Block a user