RSS feed
f12fe6c0
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/18 10:38
Constify libutf.
bfab4a4b
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/18 10:15
Fix bug in number parsing.
63d88a9c
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/18 10:07
Rewrite lexer to use a proper lookahead token.
7bf5257d
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/18 10:05
Save line number where the token starts for improved error messages.
442b8d27
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/18 10:04
Rename AST free-list.
cb5af5f1
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/18 08:44
Import UTF-8 and runestring functions from plan9port.
359ba132
– Sebastian Rasmussen <sebras@gmail.com>
authored
on 2014/01/18 06:43
Remember to remove openames.h when cleaning.
f8ff8652
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 20:22
Move object creation functions into jsobject.c
702fb1eb
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 20:15
Rename functions that push new objects on the stack.
ffc82eab
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 19:57
Add allocation counter to trigger garbage collector during interpretation.
704d1640
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 19:02
Collect garbage.
96ca91ec
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 17:57
Garbage collector lists.
299dbda1
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 17:42
Move stack into state.
81b2bb9c
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 17:03
Add constructors called with 'new' keyword.
e431170d
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 16:10
Improve stackidx function to return "undefined" for out-of-bounds accesses.
0d595bd6
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 16:09
Define some global functions and values.
060dbbb0
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 16:03
Create function objects with initial properties.
f487a7db
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 14:41
Set prototype internal property when creating objects.
5ce44f9d
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 11:00
Remember file name and line where a function object came from.
10ffd559
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 10:58
Compile global/eval code as script objects rather than regular functions.
f6c5c56b
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/17 09:58
Keep the current environment scope chain in the js_State struct.
2a027a1b
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 22:21
String concatenation.
b595422d
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 22:03
Add object property accessor functions to public API.
56042de8
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 16:36
Fix the shape of the outer API a bit. Implement eval.
e01b4d02
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 12:10
Beautify opcode dumping format.
7228ec51
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 12:04
Handle "this" by always keeping it in stack[0].
288eef80
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 10:54
Clean up. Rearrange files. Rename functions.
3715d6d1
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/16 09:15
Add JS_NORETURN declaration to longjumping functions.
d2741314
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/15 21:36
More cleanups.
0f87d011
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/15 21:13
Add callable CFunctions and a print() function.
18b192b8
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/15 20:59
Minor cleanups.
f7cdddbb
– Sebastian Rasmussen <sebras@gmail.com>
authored
on 2014/01/15 21:04
Remember main.c in tags.
4a3fdcef
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/15 19:10
Functions!
ede0f888
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/15 18:41
Prepare for objects with internal properties, and closures as objects.
6ba9e94d
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/15 12:03
js_pushlstring() for pushing literal (and interned strings).
a859bc67
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/14 21:21
Don't bother setting undefined slots in array literal elisions.
47e88ac8
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/14 20:34
Calculate stack index for both positive and negative numbers.
6b1906f3
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/14 19:36
Add for-in iterator.
6d690be9
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/14 14:06
Normal for statement.
f77a6e7e
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/14 13:17
Implement value stack and use it in the interpreter.
8d5ace5e
– Sebastian Rasmussen <sebras@gmail.com>
authored
on 2014/01/13 21:06
Fix compilation warning.
a4cc139e
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/13 16:32
Add js_Object with js_Property binary search tree.
89310461
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/13 12:21
Optimise string interning.
4b981faa
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/13 09:56
Clean up handling of function declarations / statements / expressions.
d3d07319
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/13 09:08
Set 'this' object for all types of function calls.
58b26070
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 12:53
Add while loops.
c6723706
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 12:16
Separate variable declaration and initialization.
d8576fe0
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 11:25
Create var bindings for self function and function declarations.
52f78c56
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 10:31
Compile sub-functions.
dceb4204
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 09:18
Use emitname() for identifiers, and emitstring() for string literals.
7f3673fe
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 09:11
Document some trickier byte codes.
62fea907
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 08:34
Compile logical or/and operators with early termination.
67de4965
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 07:54
Use special TCALL opcode for foo.bar() calls that set 'this' for the call.
1122d1f6
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 07:52
Improve opcode naming.
50d5cb95
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 07:50
Auto-generate list of operator names.
fb305045
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/12 07:14
Improve naming of macros in lexer.
5756da56
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/11 10:21
Begin generating byte code.
3776ea28
– Tor Andersson <tor@ccxvii.net>
authored
and Tor Andersson <tor.andersson@artifex.com>
committed
on 2014/01/11 17:38
Simplify constant folding function.
8a1c1c24
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/11 13:06
Add warning function to parser. Warn but accept function expressions
f36eb04a
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/11 13:05
Track newlines properly.
d81fc846
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/11 12:36
Improve regexp context detection.
74f2ad2c
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/11 11:51
Count lines in block comments as well.
e23d2070
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/11 11:48
Check future reserved words in parser to allow them as IdentifierName tokens.
88abe2c3
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/11 11:31
Fix parser bugs.
d9588c2c
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/11 08:03
Add UNDEF expression to handle array elisions properly.
a476ffcc
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/11 07:47
Preserve regexp flags. Escape more characters when dumping strings.
33c60e4d
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/10 18:29
Fix bug.
9db2fce3
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2014/01/10 14:50
Add proper pretty-printing functions.
7e40d3fe
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 11:55
Ensure that we can seek in the file in js_loadfile.
effc3ae9
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 09:34
Add constant folding.
3f564db2
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 09:37
Clean split between loader, parser and pretty-printer.
8342452b
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 06:37
Rename files and put stuff in the correct headers.
8c21bb04
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 06:29
Parse array literals with elisions.
228cbca9
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 06:23
Reorder statement cases to align with spec text.
4eb33495
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 06:13
Fix makefile.
24e9127b
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 06:12
Style cleanup.
27ce19d2
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/10 05:35
Remove pointless STM_BLOCK nodes.
948d6a9f
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 22:27
Pretty-print AST to javascript syntax.
747a9383
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 21:49
Parse regexp.
45e2f80a
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 20:35
Clean up interface between lexer and parser.
08c76bd5
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 20:33
Pretty print and indent STM_BLOCK nodes.
380be812
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 20:45
Parse labelled statements.
659e5597
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 18:42
Parse statements.
58d1b727
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 15:30
Fix typo. Remove ID macro.
2cfaefee
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 11:59
Add token string lookup table for better error messages.
c3a035d6
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 11:07
Use setjmp/longjmp to handle parsing errors.
157e30c5
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 11:58
Handle "exp [NLTH] ++" case in parser rather than lexer.
5ead782e
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/09 10:10
Recursive descent parser for expressions.
58fdded9
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/08 16:09
Add syntax tree structs.
adbbeec6
– Tor Andersson <tor.andersson@artifex.com>
authored
and Tor Andersson <tor@ccxvii.net>
committed
on 2013/12/28 13:22
String interning table.
ce69f95f
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/02 11:42
Treat BOM as whitespace.
bc914e67
– Tor Andersson <tor@ccxvii.net>
authored
on 2014/01/02 09:00
Support line continuation escapes in string literals.
429d7cdc
– Sebastian Rasmussen <sebras@gmail.com>
authored
on 2013/12/30 17:58
Fix typo so all arguments are loaded.
dde8db59
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2013/12/28 12:39
Add [no line-terminator here] context handling in lexer.
e928c141
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2013/12/28 07:55
Set newline flag if a token is preceded by a line terminator.
42683b9b
– Tor Andersson <tor.andersson@artifex.com>
authored
on 2013/12/28 07:54
Minor cleanups.
a4e846ba
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/27 18:54
Prepare lexer for hooking up to generated parser.
cb273846
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/27 12:56
Throw errors on future words immediately.
e01fe424
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/27 12:33
Check hex string escapes so we don't read past the end of the string.
294a8035
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/27 10:41
Print error message with line number on lexical errors.
Next