[ANN] rkelly 1.0.1 Released

  • Thread starter Aaron Patterson
  • Start date
A

Aaron Patterson

I have no idea how this happened, but I'm sure that someone pulling out a
Beretta was involved. Anyway, here it is:

rkelly version 1.0.1 has been released!

* <http://rkelly.rubyforge.org/>

The RKelly library will parse JavaScript and return a parse tree.

Changes:

### 1.0.1

* Bugfixes

* Fixed nondeterministic file order loading issue.

## Example

##
# Iterate over and modify a JavaScript AST. Then print the modified
# AST as JavaScript.
require 'rkelly'

parser = RKelly::parser.new
ast = parser.parse(
"for(var i = 0; i < 10; i++) { var x = 5 + 5; }"
)

ast.each do |node|
node.value = 'hello' if node.value == 'i'
node.name = 'hello' if node.respond_to?:)name) && node.name == 'i'
end
puts ast.to_ecma # => awesome javascript

* <http://rkelly.rubyforge.org/>
 
T

Tony Arcieri

[Note: parts of this message were removed to make it a legal post.]

I have no idea how this happened, but I'm sure that someone pulling out a
Beretta was involved. Anyway, here it is:

rkelly version 1.0.1 has been released!

* <http://rkelly.rubyforge.org/>

The RKelly library will parse JavaScript and return a parse tree.

Hey, this is an awesome library, but there's one thing I should point out
about your description on Rubyforge:

This library will parse Javascript and turn it into Ruby. The ruby generated
should be functionally equivalent to the Javascript.

At the time I was looking for a JavaScript-to-JavaScript compiler to do some
code futzing. When I found RKelly, I was like "hey great, a Racc grammar
for JavaScript!" However I was too lazy to check the README and started
trying to pull the grammar/parser into my project first before discovering
that it was a fully fledged JavaScript-to-JavaScript compiler.

You might want to note that it also outputs JavaScript on the Rubyforge
description.
 
E

Eric Hodel

Hey, this is an awesome library, but there's one thing I should
point out
about your description on Rubyforge:


At the time I was looking for a JavaScript-to-JavaScript compiler to
do some
code futzing. When I found RKelly, I was like "hey great, a Racc
grammar
for JavaScript!" However I was too lazy to check the README and
started
trying to pull the grammar/parser into my project first before
discovering
that it was a fully fledged JavaScript-to-JavaScript compiler.

You might want to note that it also outputs JavaScript on the
Rubyforge
description.

I think you missed the first line:

Judging from this sentence, I bet Aaron wouldn't mind someone taking
over rkelly.
 
T

Tony Arcieri

[Note: parts of this message were removed to make it a legal post.]

I think you missed the first line:

I have no idea how this happened, but I'm sure that someone pulling out a
Judging from this sentence, I bet Aaron wouldn't mind someone taking over
rkelly.

Heh, guess you're not an R Kelly fan...

I pull out my Beretta
He walks up to the closet
He comes up to the closet
Now he's at the closet
Now he's opening the closet
 
R

Ryan Davis

Heh, guess you're not an R Kelly fan...

We sit next to and code with aaron every day... Fan or not, we bet
Aaron would'nt mind someone taking over the project.
 
T

Tony Arcieri

[Note: parts of this message were removed to make it a legal post.]

We sit next to and code with aaron every day... Fan or not, we bet Aaron
would'nt mind someone taking over the project.

Well, through a roundabout manner I have come upon yet another of
tenderlove's projects, Johnson, which seems intended as an RKelly
replacement and is better suited for our needs anyway.

I forsee transitioning what I wrote with RKelly to Johnson shortly and begin
writing tests which actually execute the JavaScripts we're compiling.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top