This website requires JavaScript.
Retoor software development
Projects
Research
SearchXNG
Register
Sign In
5 lines
87 B
JavaScript
Raw
Normal View
History
Unescape
Escape
feat: add initial validatrix project with multi-language validator framework Establish the Validatrix source code validation framework in Nim, including core detection, tokenization, and validation infrastructure for 10 languages (bash, HTML, JavaScript, Jinja, JSON, Nim, PHP, Python, TOML, YAML). The initial commit introduces the main validatrix.nim entry point with public API (validateSource, validateFile, inspectSource), a comprehensive test suite with per-language test files, build configuration via Makefile and .nimble, detailed LESSONS_LEARNED.md documenting 14 bug classes found during development, and a .gitignore excluding compiled binaries, logs, and build artifacts. The detector module provides extension-to-flavor mapping for 40+ file extensions and content-based language detection, while the debug module supports conditional compilation with -d:validatrixDebug for detailed tokenization logging.
2026-07-08 06:25:59 +02:00
function
greet
(
name
)
{
return
`
Hello,
${
name
}
!
`
;
}
fix: nimcheck improvements for generics, JS operators, Python 3.10+ syntax - Add tolerantMode for generic Nim code with < > brackets - Fix JS ?. and ?? operator tokenization - Add Python 3.10 match/case keywords, underscore prefix support - Fix f-string parsing operator precedence bug - Fix duplicate foundClosing assignments in JS/PHP tokenizers - Treat unknown flavors as info instead of error - Add comprehensive test coverage for all fixes
2026-07-15 01:55:10 +02:00
const
x
=
obj
?
.
prop
?
?
'default'
;
Reference in New Issue
Copy Permalink
f3ad8e64c8
nimcheck
/
tests
/
fixtures
/
javascript
/
valid.js