xgo/parser
wlxwlxwlx 18b953c7be
increase size of jump operands (#438)
* [OpJumpFalse, OpAndJump, OpOrJump, OpJump], these four instructions have been changed to use 4 bytes to avoid precision loss and panic when the number of instructions exceeds the maximum of 16 bits (65535)

* update test cases

* update test cases

---------

Co-authored-by: 王录祥 <wanglx@smartsteps.com>
2023-12-20 13:13:23 -05:00
..
ast.go fix internal package issue (#241) 2019-12-24 07:42:30 -08:00
ast_test.go add go module v2 (#244) 2019-12-29 13:38:51 -08:00
expr.go spread last call argument v2 (#302) 2020-06-08 18:54:24 +02:00
file.go fix internal package issue (#241) 2019-12-24 07:42:30 -08:00
opcodes.go increase size of jump operands (#438) 2023-12-20 13:13:23 -05:00
parser.go bugfix: parse expect error when mis match braces (#421) 2023-04-23 07:37:59 +01:00
parser_test.go bugfix: parse expect error when mis match braces (#421) 2023-04-23 07:37:59 +01:00
pos.go fix internal package issue (#241) 2019-12-24 07:42:30 -08:00
scanner.go add support for parsing binary, octal and hex numbers (#364) 2022-06-15 09:50:39 +05:30
scanner_test.go add go module v2 (#244) 2019-12-29 13:38:51 -08:00
source_file.go fix internal package issue (#241) 2019-12-24 07:42:30 -08:00
stmt.go add go module v2 (#244) 2019-12-29 13:38:51 -08:00