aboutsummaryrefslogtreecommitdiff
path: root/spec (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: add test cases for empty table pattern matchingfeature/ast-node-end-positionLi Jin2026-03-262-1/+327
| | | | | | | | | | - Test [] pattern matches tables with #x == 0 - Test {} pattern matches tables with next(x) == nil - Test distinguishing between [] and {} patterns - Test empty patterns with then syntax - Test empty patterns with multiple when branches Related to #249
* feat: add m_end position to AST nodesLi Jin2026-03-264-2/+182
| | | | | | | | | - Add end line and column (m_end.m_line, m_end.m_col) to AST output - New AST format: [name, begin_line, begin_col, end_line, end_col, ...children] - Update format_spec.yue to normalize end positions for comparison - Add ast_spec.yue tests for AST end position feature Closes #251
* Updated spec.Li Jin2026-03-132-0/+11
|
* Fixed destructuring with empty and comment lines in table issue. Updated docs.v0.33.7Li Jin2026-02-287-0/+308
|
* Updated docs.Li Jin2026-02-285-0/+290
|
* Updated docs. [skip CI]Li Jin2026-02-245-95/+95
|
* Cleaned up and fixed more comment reserving codes.v0.33.4Li Jin2026-02-2417-27/+175
|
* Updated all-in-one docs.v0.33.2Li Jin2026-02-242-2/+6
|
* Fixed comma position in class members with line number comments. Fixed issue ↵Li Jin2026-02-242-2/+2
| | | | #240.
* Fixed some scripts.v0.33.1Li Jin2026-02-224-7/+86
| | | | Fix.
* Cleanup.Li Jin2026-02-222-0/+72
|
* Cleanup.Li Jin2026-02-211-471/+0
|
* Merge branch 'feature/reserve-comments-tests' into ↵Li Jin2026-02-206-0/+1572
|\ | | | | | | codex/remove-line-number-comments-from-empty-lines
| * Add test suite for reserve comments featureLi Jin2026-02-206-0/+1572
| | | | | | | | | | | | | | | | - Add assert_output_not_contains helper function for negative assertions - Add reserve_comments_spec test with Yue and Lua files - Integrate new test suite into run_all_tests.sh Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* | Skip line-number comments on empty lines in table/class blockscodex/remove-line-number-comments-from-empty-linesLi Jin2026-02-201-0/+21
|/
* Add goto statement documentation and testsLi Jin2026-02-155-0/+590
| | | | | | | | | | | - Added goto.md documentation files in all languages (en, de, zh, pt-br, id-id) - Updated conditionals.md to include goto statement references - Updated VitePress config to include new goto documentation pages - Updated makefile for goto documentation compilation - Added test outputs for goto examples in all languages - Updated yue.cpp core implementation Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Added the all-in-one doc.Li Jin2026-02-127-8/+148
|
* Updated docs.Li Jin2026-02-127-1312/+1772
|
* Added more tests.Li Jin2026-02-124-5/+80
|
* More test cases.Li Jin2026-02-122-0/+2537
|
* Fixed issues.Li Jin2026-02-112-12/+6
|
* Supported multiple break values. Simplified some generated codes.Li Jin2026-02-1111-175/+101
|
* Updated cli tests. [skip CI]Li Jin2026-02-061-8/+8
|
* test: improve CLI test summary table formattingLi Jin2026-02-061-30/+36
| | | | | | | | | | | | Optimize test results display for better readability: - Use ASCII box characters for better terminal compatibility - Improve column alignment and spacing - Remove redundant symbols in status column (PASS/FAIL only) - Left-align labels, right-align numbers in statistics table - Add color-coded pass rate (green 100%, yellow 80%+, red <80%) - Enhance final verdict section with indentation Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* test: enhance CLI test summary with detailed statisticsLi Jin2026-02-061-9/+110
| | | | | | | | | | | Improve test results display with: - Per-suite test case breakdown table - Overall statistics panel showing suite and case counts - Pass rate percentage calculation - Formatted borders and color-coded status indicators - Clear final verdict summary Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* test: add comprehensive CLI test suiteLi Jin2026-02-067-0/+921
| | | | | | | | | | | | | | | Add 56 test cases across 4 test suites to verify the yue command line tool functionality: - Basic options test: -h, --help, -v, --version flags - Compilation test: file/directory compilation with various options - Error handling test: syntax errors, file not found, edge cases - Execution test: -e option, script arguments, macros The test framework includes helper functions for assertions and test environment setup. All tests can be run via `bash spec/cli/run_all_tests.sh`. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Updated docs.v0.32.9Li Jin2026-02-065-456/+426
|
* Fixed docs.Li Jin2026-02-069-5458/+20876
|
* Updated code highlight for doc site. [skip CI]Li Jin2026-02-062-2/+2
|
* Fixed issue #227.Li Jin2026-02-052-0/+7
|
* Splited docs.Li Jin2026-02-044-3940/+4128
|
* Updated doc.Li Jin2026-02-034-11/+71
|
* Updated docs.Li Jin2026-02-031-4/+4
|
* Added more tests.Li Jin2026-01-3016-0/+804
|
* Added more format function specs.Li Jin2026-01-292-31/+117
|
* Fixed Windows build.Li Jin2026-01-292-2/+2
|
* Fixed compiler issues and added 800+ test cases.Li Jin2026-01-2846-331/+3760
|
* Add compiler improvements and comprehensive test suitecompiler-improvementsLi Jin2026-01-2735-0/+4523
| | | | | | | | - Fixed path option handling to avoid semicolon concatenation issues - Added exception handling for std::length_error and general exceptions - Added comprehensive test specifications for advanced language features Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Updated tests.Li Jin2026-01-2650-2979/+3286
|
* Fixed compiler improvements and added comprehensive test suiteLi Jin2026-01-2632-0/+4753
| | | | | | | | | | | - Fixed makefile preprocessor macro definitions (removed spaces in -D flags) - Added null pointer check in compiler class declaration handling - Added comprehensive test specifications for various language features: - attrib, backcall, cond, config, existential, export, goto - import, literals, macro, metatable, operators, return - string, switch, vararg, with Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Adding tests.Li Jin2026-01-2226-1/+329
|
* Update.v0.32.3Li Jin2026-01-215-2/+101
|
* Fixed a glitch.v0.32.1Li Jin2026-01-202-5/+5
|
* Added more specs.v0.32.0Li Jin2026-01-192-0/+18
|
* Made `;` work as statements separator.Li Jin2026-01-1910-26/+151
|
* Fixed a crash issue.v0.31.1Li Jin2026-01-153-2/+31
|
* Added const attributes.Li Jin2026-01-154-67/+219
|
* Fixed globals importing order.Li Jin2026-01-153-11/+11
|
* Added `import global` syntax.Li Jin2026-01-154-120/+370
|
* Added named vararg support.Li Jin2025-12-254-0/+236
|