aboutsummaryrefslogtreecommitdiff
path: root/src/lj_parse.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix line number in const assignment error message.Mike Pall2026-07-041-8/+17
| | | | Reported by CppCXY. #1476
* Add short function expression.Mike Pall2026-07-041-33/+92
|
* Add const declaration.Mike Pall2026-06-281-12/+52
|
* Use a hash to lookup variable names in the parser.Mike Pall2026-06-281-56/+84
| | | | Only a modest 5% speedup. But a prerequisite for const declarations.
* Properly prevent safe navigation in parallel assignment.Mike Pall2026-06-281-22/+27
| | | | Thanks to Sergey Kaplun. #1476
* Allow 'goto continue'.Mike Pall2026-06-281-1/+1
|
* Simplify safe navigation call handling.Mike Pall2026-06-271-31/+22
|
* Fix nil-coalescing operator.Mike Pall2026-06-271-3/+1
| | | | Thanks to Sergey Kaplun. #1476
* Add continue statement.Mike Pall2026-06-271-23/+70
| | | | This is a soft keyword. It can still be used as a variable name.
* Handle multiple assignment from safe navigation call.Mike Pall2026-06-271-9/+53
| | | | Note that {f?.()}, g(f?.()) and return f?.() are forced to a single result.
* Correct last fix for ternary operator.Mike Pall2026-06-271-6/+4
| | | | Thanks to Sergey Kaplun. #1476
* Don't free register before jump in ternary operator.Mike Pall2026-06-261-2/+3
| | | | Thanks to Sergey Kaplun. #1476
* Improve error messages for customary operators.Mike Pall2026-06-251-4/+5
|
* Fix indexed compound assignment.Mike Pall2026-06-241-0/+6
| | | | Reported by Appla. #1476
* Backport some v3.0 syntax extensions.Mike Pall2026-06-221-72/+224
| | | | See discussion in: #1476
* Merge branch 'master' into v2.1Mike Pall2026-01-091-1/+1
|\
| * Bump copyright date.Mike Pall2026-01-091-1/+1
| |
* | Unify Lua number to FFI integer conversions.Mike Pall2025-11-271-11/+12
| | | | | | | | Phew. #1411
* | Run VM events and finalizers in separate state.Mike Pall2025-11-101-2/+2
| | | | | | | | Reported by Sergey Kaplun. #1403
* | Merge branch 'master' into v2.1Mike Pall2025-05-281-13/+1
|\|
| * Avoid out-of-range PC for stack overflow error from snapshot restore.Mike Pall2025-05-281-13/+1
| | | | | | | | Reported by Sergey Kaplun. #1359
* | Change handling of nil value markers in template tables.Mike Pall2025-03-111-15/+5
| | | | | | | | | | Reported by Bernhard M. Wiedemann. #1348 #1155 Fixes from Peter Cawley, Christian Clason, Lewis Russell.
* | REVERT: Change handling of nil value markers in template tables.Mike Pall2025-03-101-5/+15
| |
* | Change handling of nil value markers in template tables.Mike Pall2025-03-091-15/+5
| | | | | | | | Reported by Bernhard M. Wiedemann. #1348 #1155
* | Merge branch 'master' into v2.1Mike Pall2025-01-131-1/+1
|\|
| * Bump copyright date.Mike Pall2025-01-131-1/+1
| |
* | Add build flag LUAJIT_DISABLE_TAILCALL to disable tailcall generation.Mike Pall2024-07-041-0/+4
| | | | | | | | | | | | Only use this for debugging purposes. NEVER set it for regular builds or distro builds! In Lua, tailcalls are a language guarantee. Suggested by Steve Vermeulen. #1220
* | Merge branch 'master' into v2.1Mike Pall2024-07-031-4/+2
|\|
| * Fix predict_next() in parser (for real now).Mike Pall2024-07-031-4/+2
| | | | | | | | Reported by Sergey Kaplun. #1226 #1054
* | Add cross-32/64 bit and deterministic bytecode generation.Mike Pall2024-01-221-12/+16
| | | | | | | | Contributed by Peter Cawley. #993 #1008
* | Merge branch 'master' into v2.1Mike Pall2023-08-281-1/+3
|\|
| * Fix predict_next() in parser (again).Mike Pall2023-08-281-1/+3
| | | | | | | | Reported by Sergey Bronnikov. #1054
* | Merge branch 'master' into v2.1Mike Pall2023-08-201-1/+1
|\|
| * Bump copyright date.Mike Pall2023-08-201-1/+1
| |
* | Merge branch 'master' into v2.1Mike Pall2023-08-121-0/+1
|\|
| * Fix predict_next() in parser.Mike Pall2023-08-121-0/+1
| | | | | | | | Reported by Sergey Kaplun. #1033
* | Merge branch 'master' into v2.1Mike Pall2022-12-221-6/+6
|\|
| * Avoid negation of signed integers in C that may hold INT*_MIN.Mike Pall2022-12-221-6/+6
| | | | | | | | | | | | Reported by minoki. Recent C compilers 'take advantage' of the undefined behavior. This completely changes the meaning of expressions like (k == -k).
* | Merge branch 'master' into v2.1Mike Pall2022-03-131-1/+1
|\|
| * Fix BC_UCLO insertion for returns.Mike Pall2022-03-131-1/+1
| | | | | | | | Contributed by XmiliaH.
* | Merge branch 'master' into v2.1Mike Pall2022-01-151-1/+1
|\|
| * Bump copyright date.Mike Pall2022-01-151-1/+1
| |
* | String buffers, part 2a: internal SBuf reorg. Use full pointers.Mike Pall2021-06-011-3/+3
| | | | | | | | Sponsored by fmad.io.
* | Merge branch 'master' into v2.1Mike Pall2021-01-021-1/+1
|\|
| * Bump copyright date.Mike Pall2021-01-021-1/+1
| |
* | Improve assertions.Mike Pall2020-06-151-49/+65
| |
* | Merge branch 'master' into v2.1Mike Pall2020-05-221-2/+5
|\|
| * Fix bytecode register allocation for comparisons.Mike Pall2020-05-221-2/+5
| |
* | Merge branch 'master' into v2.1Mike Pall2020-01-201-1/+1
|\|
| * Bump copyright date.Mike Pall2020-01-201-1/+1
| |