Commit Graph

70 Commits

Author SHA1 Message Date
Jacek Caban 84179c16f7 jscript: Always set parser error code on error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-23 16:39:37 +01:00
Jacek Caban 0fb086d573 jscript: Use parser location to calculate function body string.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-23 16:39:33 +01:00
Jacek Caban f34cecbae2 jscript: Treat only ASCII digits as digits.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-08 23:38:07 +01:00
Jacek Caban 78beca7887 jscript: Use wide-char literals in lexer.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-16 22:58:41 +02:00
Alexandre Julliard 29ea8b42db jscript: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-06 11:15:24 +02:00
Jacek Caban 922049a21d jscript: Add support for string literals with embedded null bytes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:09:22 +01:00
Jacek Caban edc9df207c jscript: Return regexp string as jsstr_t from lexer.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:09:04 +01:00
Jacek Caban 79557db981 jscript: Support embedded null bytes in unescape.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:08:13 +01:00
Jacek Caban 56be97fd5d jscript: Add parser support for getters and setters in object initializer.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 10:50:24 +01:00
Michael Stefaniuc ef64f27632 jscript: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-10 18:58:59 +02:00
Jacek Caban 4fde6d4138 jscript: Properly parse large hexadecimal listerals.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-11 20:14:43 +02:00
Jacek Caban 3263d51a1f jscript: Allow using reserved words as identifiers in ES5 mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-04 22:04:27 +02:00
Piotr Caban 756c604d9a jscript: Fix handling of numbers starting with decimal separator.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 00:54:12 +09:00
Jacek Caban f0be56e17c jscript: Added JSON.parse implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 13:43:27 +09:00
Jacek Caban b1197a15ec jscript: Make parse_decimal a more generic helper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 13:42:41 +09:00
Jacek Caban 170bb3771f jscript: Added beginning support for 'automagic' event binding feature. 2015-06-03 14:47:12 +09:00
Qian Hong 66ba778cad jscript: Ignore BOM mark in next_token. 2014-10-02 20:34:10 +02:00
Jacek Caban fcd9817581 jscript: Implicitly turn CC on for @if instruction. 2014-10-01 10:53:49 +02:00
Jacek Caban 8b36388797 jscript: Implicitly turn CC on for @set instruction. 2014-10-01 10:53:47 +02:00
Jacek Caban afba44d324 jscript: Added support for conditional compilation @if/@elif/@else/@end. 2014-10-01 10:53:43 +02:00
Jacek Caban 5ec69474cf jscript: Added conditional compilation @set support. 2014-09-30 18:15:14 +02:00
Jacek Caban 77d0c2a44c jscript: Moved skipping spaces to separated function. 2014-09-30 17:40:12 +02:00
Jacek Caban 79dc3bc72e jscript: Added new ccval_t type for CC variable values. 2014-09-30 17:40:11 +02:00
Jacek Caban 166c97d549 jscript: Return double from parse_numeric_literal and parse_double_literal. 2014-09-30 17:40:11 +02:00
Jacek Caban 615f6a6e8b jscript: Move parser related declarations to separated header. 2014-09-30 17:40:10 +02:00
Jacek Caban 1a89ea7043 jscript: Improved error handling in numeric literal parser. 2013-11-06 18:01:04 +01:00
Jacek Caban 4d9ea4b563 jscript: Added support for octal literals. 2013-11-06 18:01:00 +01:00
Alexandre Julliard a804cc711b jscript: Use the official Windows constant for MAXLONGLONG. 2013-10-14 17:26:14 +02:00
Jacek Caban d7f24b0956 jscript: Reuse static instance of 'undefined' string. 2013-03-08 18:11:05 +01:00
Jacek Caban c5183bb505 jscript: Use BOOL instead of VARIANT_BOOL in lexer. 2012-09-17 18:30:08 +02:00
Jacek Caban dd0fe98646 jscript: Added support for no new line between return and expression rule. 2012-09-10 17:36:08 +02:00
Jacek Caban f1642ce1fc jscript: Added support for no new line between continue and identifier rule. 2012-09-10 17:36:05 +02:00
Jacek Caban dc2133cc66 jscript: Added support for no new line between break and identifier rule. 2012-09-10 17:36:02 +02:00
Jacek Caban 4cfab07748 jscript: Always store numeric literals as double. 2012-06-20 19:20:57 +02:00
Jacek Caban de5495ba86 jscript: Added missing port.h include to lex.c. 2012-05-30 11:28:21 +02:00
Jacek Caban d0a719a79d jscript: Get rid of ret_nan hack. 2012-05-29 18:20:13 +02:00
Jacek Caban 4733fd0623 jscript: Added regexp 'pre-parser' to support non-backslash-sequenced non-terminating '/' in characted classes. 2012-04-20 11:59:51 +02:00
Piotr Caban b81e44f8d9 jscript: Make parsing of double more accurate. 2012-04-19 19:28:10 +02:00
Frédéric Delanoy 69f3d23045 jscript: Assorted spelling fixes. 2012-04-18 13:59:44 +02:00
Jacek Caban 114a439fed jscript: Fixed parsing /=/ regexp. 2012-04-02 14:14:32 +02:00
Frédéric Delanoy 69afb0985d jscript: Don't copy more than needed in parse_string_literal. 2011-08-23 16:53:55 +02:00
Jacek Caban 39f4583ef9 jscript: Don't copy more than needed in parse_identifier. 2011-08-22 15:19:18 +02:00
Jacek Caban 020245bba1 jscript: Fixed some clang warnings. 2011-01-27 16:32:22 +01:00
Jacek Caban 48202ee09e jscript: Don't unescape '\v'. 2010-12-29 17:01:46 +01:00
Jacek Caban 45e33ec280 jscript: Beginning support for conditional compilation. 2010-12-28 16:35:43 +01:00
Jacek Caban 74416052ce jscript: Moved allocating double literal to separated function. 2010-12-28 16:35:43 +01:00
Jacek Caban 501cad6920 jscript: Moved new_boolean_literal to lex.c. 2010-12-28 16:35:42 +01:00
Jacek Caban 0f36ef09b1 jscript: Ensure that the whole script is parsed. 2010-12-28 16:35:42 +01:00
Jacek Caban 5e469f4fff jscript: Use HRESULTs instead of IDSs in parser. 2010-12-28 16:35:42 +01:00
Jacek Caban 7774a0a4c1 jscript: Pass HRESULTs instead of IDSs to throw_* functions. 2010-12-28 16:35:41 +01:00