created own directory for parser
This commit is contained in:
parent
b1203363d4
commit
436a5dac5a
@ -2,7 +2,7 @@ require 'parslet'
|
||||
|
||||
require "asm/program"
|
||||
require "elf/object_writer"
|
||||
require 'vm/parser'
|
||||
require 'parser/parser'
|
||||
require 'parser/transform'
|
||||
require 'vm/nodes'
|
||||
require 'vm/transform'
|
||||
|
||||
|
14
lib/parser/README.markdown
Normal file
14
lib/parser/README.markdown
Normal file
@ -0,0 +1,14 @@
|
||||
Parser
|
||||
================
|
||||
|
||||
This includes the parser and generated ast.
|
||||
|
||||
Parslet is really great in that it:
|
||||
- does not generate code but instean gives a clean dsl to define a grammar
|
||||
- uses ruby modules so one can split the grammars up
|
||||
- has a seperate tranform stage to generate an ast layer
|
||||
|
||||
Especially the last point is great. Since it is seperate it does not clutter up the actual grammar.
|
||||
And it can generate a layer that has no links to the actual parser anymore, thus saving/automating
|
||||
a complete tranformation process.
|
||||
|
@ -1,18 +1,3 @@
|
||||
Parser
|
||||
================
|
||||
|
||||
This includes the parser and generated ast.
|
||||
|
||||
Parslet is really great in that it:
|
||||
- does not generate code but instean gives a clean dsl to define a grammar
|
||||
- uses ruby modules so one can split the grammars up
|
||||
- has a seperate tranform stage to generate an ast layer
|
||||
|
||||
Especially the last point is great. Since it is seperate it does not clutter up the actual grammar.
|
||||
And it can generate a layer that has no links to the actual parser anymore, thus saving/automating
|
||||
a complete tranformation process.
|
||||
|
||||
|
||||
Virtual Machine
|
||||
===============
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user