openhub.net
Black Duck Software, Inc.
Open Hub
Follow @
OH
Sign In
Join Now
Projects
People
Organizations
Tools
Blog
BDSA
Projects
People
Projects
Organizations
W
Writing a Ruby compiler in Ruby
Settings
|
Report Duplicate
0
I Use This!
×
Login Required
Log in to Open Hub
Remember Me
Very High Activity
Commits
: Listings
Analyzed
1 day
ago. based on code collected
2 days
ago.
Oct 19, 2025 — Oct 19, 2026
Showing page 116 of 117
Search / Filter on:
Commit Message
Contributor
Files Modified
Lines Added
Lines Removed
Code Location
Date
Added grammar comments to ws and nolfws rules
Vidar Hokstad
More...
over 17 years ago
Renamed testargs.l to testargs.rb, fixed a minor bug and cleaned up the Makefile
Vidar Hokstad
More...
over 17 years ago
Added skipping of comments
Vidar Hokstad
More...
over 17 years ago
Updated grammar comment
Vidar Hokstad
More...
over 17 years ago
Expanded operator table
Vidar Hokstad
More...
over 17 years ago
Moved operators table into it's own file, to be used by the tokenizer too
Vidar Hokstad
More...
over 17 years ago
Made function calls use :call to prevent accidental name collissions (using 'index' as a function name, and accidentally calling the compiler internal :index operation)
Vidar Hokstad
More...
over 17 years ago
Reordered priorities a bit, and made [] work as :index
Vidar Hokstad
More...
over 17 years ago
Initial wiring up of an operator precedence parser using the Shunting Yard algorithm. There's a lot of mess in this version, including semi-arbitrary operator priorities, and incomplete lists of operators, quick and dirty hacks etc. - the next few commits will clean that up.
Vidar Hokstad
More...
over 17 years ago
Added Ruby-like 'while' syntax to the parser and redid one of the examples
Vidar Hokstad
More...
over 17 years ago
Added "lifting" of variable names from :assign nodes, so that explicit :let's can be avoided. Currently the lifting ignores nested :lets (we don't handle nested :let's anyway) and just creates a single :let inside each :defun.
Vidar Hokstad
More...
over 17 years ago
Added "deep_collect" a method that visits each array element in turn, recursively, and yield objects of a specific class (by default Array's), and collects the returned values - used to "visit" parts of the tree.
Vidar Hokstad
More...
over 17 years ago
Added parsing of the argument list
Vidar Hokstad
More...
over 17 years ago
Added method for whitespace excluding line feed (+cr), since that's required all over the place for a ruby-like syntax
Vidar Hokstad
More...
over 17 years ago
Tiny refactoring / adding convenience method for a list of 'zero or more'
Vidar Hokstad
More...
over 17 years ago
Added basic 'def' syntax similar to Ruby's; updated testargs.l to demonstrate
Vidar Hokstad
More...
over 17 years ago
Removing parser.l as it no longer handles the syntax used
Vidar Hokstad
More...
over 17 years ago
Added --parsetree option to allow dumping the parsetree and quitting
Vidar Hokstad
More...
over 17 years ago
BNF for the current parser skeleton
Vidar Hokstad
More...
over 17 years ago
Changed two of the test programs to demonstrate that the new parser skeleton allows multiple escaped blocks
Vidar Hokstad
More...
over 17 years ago
Added the skeleton for the main parser
Vidar Hokstad
More...
over 17 years ago
Moved #ws to Scanner since it'll be used by other parser components
Vidar Hokstad
More...
over 17 years ago
Converted test programs to the 'lisp like' s-expression syntax; Made the compiler driver use the s-expression parser as a frontend
Vidar Hokstad
More...
over 17 years ago
Refactoring to use custom tokenization classes to handle the terminals
Vidar Hokstad
More...
over 17 years ago
Initial version of a proper s-expression style parser to be used to allow quoted s-expressions to make bootstrapping the parser simpler
Vidar Hokstad
More...
over 17 years ago
Added testargs target
Vidar Hokstad
More...
over 17 years ago
Fixed a typo and added a missing function
Vidar Hokstad
More...
over 17 years ago
Optimization for :numargs
Vidar Hokstad
More...
over 17 years ago
Variable length arguments
Vidar Hokstad
More...
over 17 years ago
Step 13
Vidar Hokstad
More...
over 17 years ago
←
1
2
…
109
110
111
112
113
114
115
116
117
→
This site uses cookies to give you the best possible experience. By using the site, you consent to our use of cookies. For more information, please see our
Privacy Policy
Agree