Skip to content

mallowlabs/tobirex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

## about ##
Tobirex is a javascript lexer.
It outputs results of analysis as XML format.
It leaves whitespaces on results,
so you can convert XML outputs to the original source code.

## install ##
1. gem sources -a http://gems.github.com
2. gem install aaronp-frex
3. gem install mallowlabs-tobirex

## usage ##
$ tobirex < target.js
or
$ tobirex target.js

## example ##
$ cat test.js
var i = 0;

$ tobirex test.js
<?xml version="1.0"?><tokens><kw>var</kw><sp> </sp><ident>i</ident><sp> </sp><op>=</op><sp> </sp><literal>0</literal><op>;</op><nl>
</nl><nl>
</nl></tokens>

About

Token based Intermediate representation with XML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages