C

ContenT

A DSL compiler that transforms .ct files into optimized Bash scripts. The language syntax is a hybrid of Python, Go, and Vala

  • Roman Alifanov's avatar
    Optimize codegen: eliminate subshell forks, inline dict/fs methods · dd891640
    Roman Alifanov authored
    - Comparisons set __CT_RET directly instead of $() subshell fork
    - Logical NOT (!) inlined same way
    - fs.exists() inlined to [[ -e ]] in conditions
    - fs.read uses $(<file) instead of $(cat), fs.write/append use printf
    - fs.exists/remove/mkdir avoid unnecessary $() wrapping
    - Dict .get()/.has()/.len() inlined for local dict vars
    - __ct_print simplified: removed unnecessary local variable
    - String concat ..= uses native += append
    - Skip __CT_RET self-assignment in return statements
    dd891640
Name
Last commit
Last update
.gear Loading commit data...
compiler Loading commit data...
examples Loading commit data...
lib Loading commit data...
tests Loading commit data...
LANGUAGE_SPEC.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
README_ru.md Loading commit data...
content Loading commit data...
content.in Loading commit data...
content.spec Loading commit data...
meson.build Loading commit data...