Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The basic machinery is in place but the processor is all stubs. Both String#to_ast and File.to_ast "work". The next steps are: 1. Get a harness in place to run the specs 2. Start adding functionality to the processor methods 3. Fix the arguments passed to processor methods from the visitor 4. Augment the compiler Node classes with additional methods as needed 5. Get all specs passing 6. Remove the dependencies on libmpa, libmquard, libcchash
- Loading branch information
Brian Ford
committed
Jul 20, 2009
1 parent
651d835
commit ad861fe
Showing
21 changed files
with
19,330 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
extension do |e| | ||
e.name 'melbourne' | ||
e.files '*.c', '*.cpp' | ||
e.includes '.', '../../../vm/external_libs/libbstring', | ||
'../../../vm/external_libs/libmquark', | ||
'../../../vm/external_libs/libmpa', | ||
'../../../vm/external_libs/libcchash' | ||
|
||
e.pre_compile do | ||
if File.mtime("grammar.y") > File.mtime("grammar.cpp") | ||
system "bison -o grammar.cpp grammar.y" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require 'rbconfig' | ||
require 'mkmf' | ||
|
||
create_makefile('melbourne') | ||
|
||
File.open("Makefile","a+") do |f| | ||
f.puts <<END | ||
grammar.cpp: grammar.y | ||
bison -o grammar.cpp grammar.y | ||
END | ||
end |
Oops, something went wrong.