4 Commits
Author SHA1 Message Date
potatiat dff481597d [38] docs: add constructors for every AST kind
Only create_module existed. The other kinds in KIND had no
constructor, so nothing could build those nodes.

Signed-off-by: potatiat <potatiat@proton.me>
2026-09-03 10:10:31 -04:00
potatiat 39e581d0c3 [38] docs: tag modules with KIND.MODULE
create_module stored kind as the string "module". The KIND table and
the constructor comment both use the integer ast.KIND.MODULE.

Signed-off-by: potatiat <potatiat@proton.me>
2026-09-03 10:10:31 -04:00
potatiat 1a074d9a4a [38] docs: store column_number under its field name
create_location_table listed column_number without a key, so Lua stored
it as array index 1 and location.column_number was nil. The function
comment already documents the keyed field.

Signed-off-by: potatiat <potatiat@proton.me>
2026-09-03 10:10:31 -04:00
Ronald Caesar 5135147d51 [38] tools/cdoc/ast: add initial abstract syntax tree implementation 2026-08-07 03:15:21 -04:00