Files
Nim/compiler
metagn bcecce885f track introduced locals in vmgen for eval check (#24674)
fixes #8758, fixes #10828, fixes #12172, fixes #21610, fixes #23803,
fixes #24633, fixes #24634, succeeds #24085

We simply track the symbol ID of every traversed `var`/`let` definition
in `vmgen`, then these symbols are always considered evaluable in the
current `vmgen` context. The set of symbols is reset before every
generation, but both tests worked properly without doing this including
the nested `const`, so maybe it's already done in some way I'm not
seeing.

(cherry picked from commit a5cc33c1d3)
2025-03-03 14:02:03 +01:00
..
2023-12-15 10:20:57 +01:00
2025-01-14 07:53:29 +01:00
2024-06-07 09:01:30 +02:00
2025-01-14 07:53:29 +01:00
2017-01-07 22:35:09 +01:00
2024-04-22 13:04:30 +02:00
2025-01-14 07:47:19 +01:00
2023-12-17 18:43:52 +01:00
2025-01-15 10:21:20 +01:00
2023-12-13 10:29:58 +01:00
2025-01-14 13:17:34 +01:00
2021-01-12 09:36:51 +01:00
2024-07-09 09:29:45 +02:00
2025-01-14 07:51:55 +01:00
2023-12-17 18:43:52 +01:00
2023-07-02 22:36:05 +02:00
2023-11-06 18:33:28 +01:00
2025-01-15 10:21:20 +01:00
2024-03-16 08:35:18 +08:00
2023-12-25 07:12:54 +01:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.