Ronald Caesar
3df7fd5596
[38] cdoc: fixup some files
...
Signed-off-by: Ronald Caesar <github43132@proton.me >
2026-10-05 19:33:03 -04:00
fsadannn
31a753efc5
[38] cdoc: color and systax pickers for html generation
2026-10-05 19:26:05 -04:00
Ronald Caesar
aad7ef738f
[38] cdoc: add minor changes to clang.lua
...
Signed-off-by: Ronald Caesar <github43132@proton.me >
2026-09-26 23:58:52 -04:00
Ronald Caesar
7c93e73dd7
[38] cdoc: add more error handling to cstring_to_string()
...
Signed-off-by: Ronald Caesar <github43132@proton.me >
2026-09-26 23:58:52 -04:00
fsadannn
d3ae5bff8c
[38] cdoc: clang boilerplate for parsing and visiting headers
2026-09-26 23:58:52 -04:00
fsadannn
e5a55ca022
[38] cdoc: clang boilerplate for parsing and visiting headers
2026-09-26 23:58:52 -04:00
Ronald Caesar
665aa752c4
[76] scripts/cdoc: find libclang.dll on my machine
2026-09-15 19:04:12 -07:00
fsadannn
16b20f0b18
[78] scripts/cdoc: find clang headers in windows
2026-09-15 18:38:51 -07:00
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
a32976bb83
[38] tools/cdoc/parser: add more error handling
2026-08-07 04:38:30 -04:00
Ronald Caesar
5135147d51
[38] tools/cdoc/ast: add initial abstract syntax tree implementation
2026-08-07 03:15:21 -04:00
Ronald Caesar
986d1e78e1
[38] tools/cdoc/parser: extract file level documentation
...
Introduces parse_file_level_docs() which extracts file level
documentation prefixed with //!.
2026-08-07 02:23:24 -04:00
Ronald Caesar
b9f245a12b
[38] tools/cdoc: pass clang arguments to parser
2026-08-05 05:15:26 -04:00
Ronald Caesar
a41cf62242
[38] tools/cdoc/clang: remove magic check from init function
2026-08-05 02:25:31 -04:00
Ronald Caesar
2067dfd790
[38] tools/cdoc/clang: find clang resouce directory on linux machines
2026-08-05 02:15:56 -04:00
Ronald Caesar
7fec3a5b8a
[38] tools/cdoc/parser: assign clang library to its own variable
2026-08-05 01:45:57 -04:00
Ronald Caesar
193a3743bc
[38] tools/cdoc: add destroy function to clang.lua
2026-08-05 01:36:54 -04:00
Ronald Caesar
6a2eec13b6
[38] tools/cdoc: rename clang variable to clang_api
...
This is done to make a clear distinction between the clang context
and API.
2026-08-05 01:27:41 -04:00
Ronald Caesar
b8b5f9676e
[38] tools/cdoc: add magic numbers to clang context
...
This requires removing clang.get() and passing the context as a
function parameter instead.
2026-08-05 01:26:12 -04:00
Ronald Caesar
e4b81851b1
[38] tools/cdoc: fix typo in clang.lua error definitions
2026-08-05 01:12:15 -04:00
Ronald Caesar
629e79988b
[38] tools/cdoc: add create_context() to clang.lua
2026-08-05 00:52:32 -04:00
Ronald Caesar
24f920de84
[38] tools/cdoc: add clang.lua specific errors
2026-08-04 03:32:09 -04:00
Ronald Caesar
f0dd8cc5fa
[38] tools/cdoc: create translation units with clang
2026-08-04 03:15:43 -04:00