RSS feed
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.
11730a96
– Sebastian Rasmussen <sebras@gmail.com>
authored
on 2013/12/24 08:45
Free dynamically allocated yytext when closing.
e3702962
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/23 19:35
Lex regular expression literals.
db3ae4ed
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/23 18:13
Move yytext and yynumber into js_State.
f323d6a9
– Tor Andersson <tor@ccxvii.net>
authored
on 2013/12/23 17:54
Clean up lexing macro use.
bb2279e4
– Sebastian Rasmussen <sebras@gmail.com>
authored
on 2013/12/23 14:47
Add lexer.
c816b119
– Tor Andersson <tor@ccxvii.net>
authored
and Sebastian Rasmussen <sebras@gmail.com>
committed
on 2013/12/23 08:09
Create README files.