Commit Graph

20 Commits

Author SHA1 Message Date
csh 7aa60e78f8 🐛 fix(tree_sitter): parse anonymous procedures and property accessors
accept anonymous procedure expressions, keyword-prefixed identifiers,

and read/write accessor nodes in the grammar and generated parsers.

sync ast tests, parser scripts, sample fixtures, and playbook

config with the updated parser behavior.
2026-05-24 11:07:30 +08:00
csh a9958f36fe 🔧 chore(repo): refresh local rules and ast defaults
add repository-local agent rules and refresh the architecture notes
for the current lsp layering.

register the AST self-test in CTest, initialize a few AST defaults,
and bump glaze to the newer conan package version.

verify: `cmake --build lsp-server/build/clang-linux/Release --target test_ast`
verify: `ctest --test-dir lsp-server/build/clang-linux/Release -R test_ast_unit --output-on-failure` passes
known issue: `ctest --test-dir lsp-server/build/clang-linux/Release -R test_ast_script --output-on-failure` still fails on `/home/csh/windows_share/tsf/funcext/Common/Tree/TTree.tsf` due to invalid TSF syntax (`FConfig &= v` missing trailing `;`).
2026-03-06 13:03:00 +08:00
csh 32e1eb09db 🐛 fix(ast): support single-variable for-in fallback
normalize single-variable for-in nodes in the deserializer and
rewrite legacy input in test_ast when the bundled parser cannot
generate updated parse tables.

skip known-invalid tsf fixtures in test.sh so batch runs can
continue past syntax errors that the grammar should not accept.
2026-03-06 11:45:53 +08:00
csh f056b0cad1 test(lsp_server): update test scripts and tsf cases 2026-01-08 15:51:54 +08:00
csh 442bb5db7e 🧹 chore: align scripts with kept build dirs 2025-12-21 17:35:42 +08:00
csh eb44afe2be 🧪 test: ignore IDS_AuditExpr in ast/symbol scripts 2025-12-21 15:57:38 +08:00
csh f2d2aeb272 🧪 test: wire ast/symbol scripts into ctest 2025-12-21 15:47:27 +08:00
csh b27dafb657 sync tree-sitter grammar and AST 2025-12-20 11:25:33 +08:00
csh 476e83beb8 feat(lsp_server): support rdo_expression and normalize call field
- rename tree-sitter fields for inherited/rdo to 'call'
- regenerate parser sources and sync into lsp-server
- add RdoExpression to AST + symbol/semantic visitors
2025-12-14 06:05:47 +08:00
csh e5782c76fa ♻️ refactor(lsp_server): move entrypoints out of named modules
- export Run() from launcher module and add non-module main TU
- apply same pattern to module-based test executables
- migrate utils/string implementation fully into string.cppm and drop string.cpp
- point clangd to linux build compilation database
2025-12-13 19:55:45 +08:00
csh f7d5a74615 ♻️ 使用`module`重构所有代码 2025-12-07 23:07:03 +08:00
csh 549f1d1b0a ♻️ 重构 2025-12-05 21:03:18 +08:00
csh 99f735f2df 🗑️ 删除`CMakeLists.txt`对`vcpkg`的支持
 新增`conan`包管理,并配置多平台`profile`

🔧 变更`CMakeLists`的设置
2025-11-17 17:41:43 +08:00
csh cee6e614bf ♻️ 重构符号表相关内容
🚀 优化`ast`相关代码
2025-11-16 21:20:47 +08:00
csh 8f25f212a7 📦 更新`lsp`对`tree-sitter`的依赖
🚀 优化部分无关代码

🐛 修复`ast`的测试代码
2025-11-15 21:19:45 +08:00
csh 0ef01a2d1c ♻️ 重大重构 2025-11-11 18:58:21 +08:00
csh e7a5274270 大量更新,不想写更新日志 2025-11-01 22:57:53 +08:00
csh 7d9b966bc7 improve ast 2025-10-26 22:51:52 +08:00
csh 6aa28f9b23 update test_ast file 2025-10-25 23:53:04 +08:00
csh 117f8e878e update test file 2025-10-25 14:06:58 +08:00