Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 84 lines (44 sloc) 2.157 kb
ab55266 @fglock Perlito5 - update Makefile (suggested by shlomif++)
authored
1 Using make:
2
3 make
4 - builds perlito5.js (which runs in node.js)
5
6 make test
7 - tests perlito5.js using node.js
8
9 make build-5browser
10 - builds html/perlito5.js (which runs in the browser)
11
12 -- See "Makefile" for more options
13
14
e518f94 @fglock Perlito5 - fix README instructions; rebuild
authored
15 Running the tests using "node.js":
155b839 @fglock Perlito5 - perlito5.js: add -Bjs option
authored
16
e518f94 @fglock Perlito5 - fix README instructions; rebuild
authored
17 # this command will compile "perlito5.js"
b4f4a35 @fglock Perlito5 - perl5: "use" is compile-time (the emitted code contains al…
authored
18 perl perlito5.pl -I./src5/lib -Cjs src5/util/perlito5.pl > perlito5.js
e518f94 @fglock Perlito5 - fix README instructions; rebuild
authored
19
20 # this will run a single test script
ec5b1f1 @fglock Perlito5 - fix instructions in README-perlito5
authored
21 node perlito5.js -Isrc5/lib t5/01-perlito/01-sanity.t
22
e518f94 @fglock Perlito5 - fix README instructions; rebuild
authored
23 # this will run all tests
ec5b1f1 @fglock Perlito5 - fix instructions in README-perlito5
authored
24 prove -r -e 'node perlito5.js -I./src5/lib' t5
155b839 @fglock Perlito5 - perlito5.js: add -Bjs option
authored
25
4a265d7 @fglock Perlito5 - perlito5.js: docs: running tests with prove (pmurias++)
authored
26
e90bcbe @fglock Perlito5 - fix Javascript exists; add README-perlito5
authored
27 Compile the compiler to Javascript into perlito5.js:
8b2a08f @fglock Perlito5 - fix Javascript IO.slurp
authored
28
74fd490 @fglock Perlito5 - fix docs
authored
29 -- using perl and perlito5.pl:
6faebba @fglock Perlito5 - update README
authored
30
b4f4a35 @fglock Perlito5 - perl5: "use" is compile-time (the emitted code contains al…
authored
31 perl perlito5.pl -I./src5/lib -Cjs src5/util/perlito5.pl > perlito5.js
6faebba @fglock Perlito5 - update README
authored
32
74fd490 @fglock Perlito5 - fix docs
authored
33 -- using node.js and perlito5.js:
6faebba @fglock Perlito5 - update README
authored
34
385fb81 @fglock Perlito5 - add "use" list to the AST
authored
35 node perlito5.js -I./src5/lib -Cjs src5/util/perlito5.pl > perlito5-new.js
e90bcbe @fglock Perlito5 - fix Javascript exists; add README-perlito5
authored
36
9d0bc23 @fglock Perlito5 - docs: add build scripts
authored
37 Compile the compiler to Perl5 using perl:
38
b4f4a35 @fglock Perlito5 - perl5: "use" is compile-time (the emitted code contains al…
authored
39 perl perlito5.pl -I./src5/lib -Cperl5 src5/util/perlito5.pl > perlito5-new.pl
9d0bc23 @fglock Perlito5 - docs: add build scripts
authored
40
b4f4a35 @fglock Perlito5 - perl5: "use" is compile-time (the emitted code contains al…
authored
41 Compile perlito5-in-browser using perl:
9d0bc23 @fglock Perlito5 - docs: add build scripts
authored
42
43 perl util-js/make-perlito5-js.sh
44
6bdf7ca @fglock Perlito5 - fix README instructions
authored
45
1e2d817 @fglock Perlito5 - move node.js README instructions up
authored
46 Running the tests using "perl":
47
48 # this will run all tests
b4f4a35 @fglock Perlito5 - perl5: "use" is compile-time (the emitted code contains al…
authored
49 prove -r -e 'perl perlito5.pl -I./src5/lib ' t5
1e2d817 @fglock Perlito5 - move node.js README instructions up
authored
50
51
ebce10f @fglock Perlito5 - parser: add __END__, __DATA__
authored
52 Bootstrap with perl:
53
ee50878 @fglock Perlito5 - parser: use new module Perlito5::Grammar::Sigil
authored
54 time perl perlito5.pl -Isrc5/lib -Cperl5 src5/util/perlito5.pl > perlito5-new.pl && diff perlito5-new.pl perlito5.pl ; cp perlito5-new.pl perlito5.pl
ebce10f @fglock Perlito5 - parser: add __END__, __DATA__
authored
55
56 Bootstrap with node.js:
57
58 time node perlito5.js -Isrc5/lib -Cjs src5/util/perlito5.pl > perlito5-new.js && diff perlito5-new.js perlito5.js ; cp perlito5-new.js perlito5.js
59
1e2d817 @fglock Perlito5 - move node.js README instructions up
authored
60
6807ab1 @fglock Perlito5 - add a note about javascript minification
authored
61 Minifying the javascript output:
62
63 The "jsmin" compressor seems to work, it gives 20% compression:
64
65 http://crockford.com/javascript/jsmin
66
67 $ sudo port install jsmin # osx
68 $ jsmin < perlito5.js > mini-perlito5.js
69 $ nice prove -r -e 'node mini-perlito5.js -I./src5/lib' t5
70 ...
71 All tests successful.
72
73
6bdf7ca @fglock Perlito5 - fix README instructions
authored
74 TODO:
75
76 Running the tests using perl6:
77
78 # TODO - this is not implemented yet
79 . util-perl6/setup-perlito5-perl6.sh
b4f4a35 @fglock Perlito5 - perl5: "use" is compile-time (the emitted code contains al…
authored
80 find t5/01-perlito/*.t | perl -ne ' print "*** $_"; chomp; print ` perl perlito5.pl -I./src5/lib -Cperl6 $_ > tmp.p6 && perl6 tmp.p6 ` '
6bdf7ca @fglock Perlito5 - fix README instructions
authored
81
82
83
Something went wrong with that request. Please try again.