Skip to content

Add chokidar-as-cli example and implement Lua library functions#490

Open
gesslar wants to merge 1 commit into02-21-refactor_update_example_plugins_and_hooks_for_formatter_renamefrom
02-21-test_add_lua_source_test_fixtures_for_parser_testing
Open

Add chokidar-as-cli example and implement Lua library functions#490
gesslar wants to merge 1 commit into02-21-refactor_update_example_plugins_and_hooks_for_formatter_renamefrom
02-21-test_add_lua_source_test_fixtures_for_parser_testing

Conversation

@gesslar
Copy link
Owner

@gesslar gesslar commented Feb 22, 2026

Summary

Adds a curated set of 4 representative source files per parser type as test fixtures for validating the Lua and C parsers:

  • examples/source/lua/string.lua, date.lua, table.lua, func.lua (updated from meta definitions to implementations)
  • examples/source/lua-library-source/ — same 4 files as reference library variants (new meta definitions)
  • examples/chokidar-as-cli/src/string.c, function.c, data.c, numbers.c (new C function declarations)
  • examples/source/lpc/data.c — minor annotation update adding @return {void} to data_write

The same 4 filenames are used across the Lua directories to ensure reproducibility when testing the same parser logic under different source contexts (standalone vs. library source). Files were chosen to cover a range of documentation patterns: simple utilities, date/time functions with rich annotations, collection utilities, and functional patterns.

Test plan

  • Run BeDoc against examples/source/lua/ and verify Lua parser produces output
  • Run BeDoc against examples/source/lua-library-source/ and confirm same parser logic applies
  • Run BeDoc against examples/chokidar-as-cli/src/ and verify C parser produces output

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gesslar gesslar force-pushed the 02-21-test_add_lua_source_test_fixtures_for_parser_testing branch from 5c5aa12 to 66479dc Compare February 22, 2026 03:05
@gesslar gesslar changed the title test: add Lua source test fixtures for parser testing test: add representative source test fixtures for Lua and C parsers Feb 22, 2026
@gesslar gesslar changed the title test: add representative source test fixtures for Lua and C parsers Add chokidar-as-cli example and implement Lua library functions Feb 22, 2026
@gesslar gesslar force-pushed the 02-21-test_add_lua_source_test_fixtures_for_parser_testing branch from 66479dc to 8139fd6 Compare February 22, 2026 05:08
@gesslar gesslar force-pushed the 02-21-refactor_update_example_plugins_and_hooks_for_formatter_rename branch from 1d73c81 to 3835025 Compare February 22, 2026 05:08
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gesslar gesslar force-pushed the 02-21-refactor_update_example_plugins_and_hooks_for_formatter_rename branch from 3835025 to fba67a7 Compare February 22, 2026 06:05
@gesslar gesslar force-pushed the 02-21-test_add_lua_source_test_fixtures_for_parser_testing branch from 8139fd6 to f8266c4 Compare February 22, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant