You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aleksey Chichenkov 72a7d5e043 fix 10 months ago
example fix 10 months ago
libs no dependencies 10 months ago
LICENSE Initial commit 10 months ago
README.md fix 10 months ago
build.sh fix 10 months ago
build_example.sh fix 10 months ago
main.js fix 10 months ago
package.json no dependencies 10 months ago
run.sh change to main and add package 10 months ago
test.js fix replasing 10 months ago

README.md

re2-js-generator

Requires

  • node
  • npm
  • re2c

Install

git clone -- http://git.macaw.me:3000/chichenkov/re2-js-generator.git
cd re2-js-generator
./build.sh

One Minute Guide

You can fast use example:

./build_example.sh
cd example/
node lexme.js

Start

./run.sh
### or
node main -c=<config_path>
### or
node main.js -inp=<input_file> -o=<output_path> -t=<web|node> <-nb|--no-beautify> -logs -web-template=<web_template_file>

Result fill write in file.

Flags

-c=<config_path>
-inp=<input_file.l>
-o=<output_path>
-t=<web|node>
-nb|--no-beautify
-logs
-web-template=<web_template_file>

Web template example

You can create template file for simplify web develop

(function(){
    var deps = [];
    define(deps, function(){
        <%%LEXER%%>
        return Lexer;
    });
})();

Test

node test.js

Manual

Read re2c manual: http://re2c.org/manual/manual.html

Report for bugs: rolahd@yandex.ru