gecko-dev/js2/README

119 строки
2.8 KiB
Plaintext
Исходник Обычный вид История

Build instructions for Epimetheus
10/12/2002
Building JS2 on WINNT:
---------------------------------------------------------------------------------------------
[/d/JS_2] cvs -z3 co mozilla/js2
cvs -z3 co mozilla/js/src/fdlibm
2001-12-12 03:24:17 +03:00
Compiling in Visual C++:
Workspace: D:\JS_2\mozilla\js2\src\winbuild\Epimetheus\Epimetheus.dsw
Project Files: D:\JS_2\mozilla\js2\src\winbuild\Epimetheus.dsp <---------- active project
D:\JS_2\mozilla\js2\src\winbuild\fdlibm.dsp
RUNNING EPIMETHEUS AFTER YOU'VE BUILT IT:
2002-11-07 01:19:55 +03:00
>cd (path to)\mozilla\js2\src\winbuild\Epimetheus\Debug <-- assuming you built the debug target (the default)
>Epimetheus
Welcome to Epimetheus.
ep> (use ^z to exit)
2001-12-12 03:24:17 +03:00
Building JS2 on LINUX:
---------------------------------------------------------------------------------------------
[/d/JS_2] cvs -z3 co mozilla/js2
cvs -z3 co mozilla/js/src/fdlibm
[/d/JS_2] cd mozilla/js/src/fdlibm
[/d/JS_2/mozilla/js/src/fdlibm] make -f Makefile.ref <-- builds libfdm.a
[/d/JS_2/mozilla/js/src/fdlibm] cd mozilla/js2
[/d/JS_2/mozilla/js2] automake <--- FIRST TIME ONLY
[/d/JS_2/mozilla/js2] autoconf <--- FIRST TIME ONLY
[/d/JS_2/mozilla/js2] ./configure --enable-debug <--- FIRST TIME ONLY
[/d/JS_2/mozilla/js2] make
RUNNING THE JS2 SHELL AFTER YOU'VE BUILT IT:
2002-11-07 01:19:55 +03:00
cd (path to)/mozilla/js2/src
[ (path to)/mozilla/js2/src] ./epimetheus
2001-12-12 03:24:17 +03:00
---------------------------------------------------------------------------------------------
Files:
js2metadata.[cpp|h]
- Walks parse tree, applies semantics analysis, emit byte code.
bytecodecontainer.[cpp|h]
- Utility class for handling bytecode stream.
2002-01-11 03:29:25 +03:00
exception.[cpp|h]
- exception objec
2002-01-11 03:29:25 +03:00
formatter.cpp formatter.h
- "Formatter" class, iostream like wrapper around stdio.
hash.cpp hash.h
2002-01-11 03:29:25 +03:00
- a hash
js2engine.[cpp|h]
2002-01-11 03:29:25 +03:00
- interpreter loop & runtime support routines
2002-11-07 01:19:55 +03:00
js2array.[cpp|h]
js2date.[cpp|h]
js2math.[cpp|h]
js2string.[cpp|h]
js2regexp.[cpp|h]
2002-01-11 03:29:25 +03:00
- implementations of ECMAScript built-ins
lexer.cpp lexer.h
2002-01-11 03:29:25 +03:00
- main lexer.
mem.cpp mem.h
2002-01-11 03:29:25 +03:00
- zone, arena, and pool classes for memory management.
numerics.cpp numerics.h
2002-01-11 03:29:25 +03:00
- numbers and stuff.
parser.cpp parser.h
2002-01-11 03:29:25 +03:00
- main parser source.
tables in parser.h:
2002-01-11 03:29:25 +03:00
enum ExprNode::Kind; types of expressions
enum StmtNode::Kind; types of statements
2002-01-11 03:29:25 +03:00
prmjtime.[cpp|h]
- [Mac only?] OS interface routines for jsdate
reader.cpp reader.h
2002-01-11 03:29:25 +03:00
- "Reader" class, feeds source to the parser/lexer.
regexpwrapper.cpp
- cpp front to regexp engine in regexp/regexp.[ch]
stlcfg.h
2002-01-11 03:29:25 +03:00
- stupid stl tricks
strings.[cpp|h]
- unicode string support
systemtypes.h
2002-01-11 03:29:25 +03:00
- basic typedefs.
token.cpp token.h
2002-01-11 03:29:25 +03:00
- token class.
utilities.cpp utilities.h
2002-01-11 03:29:25 +03:00
- random things.
world.cpp world.h
- the whole world.