turf lang
Turflang is a statically compiled programming language and compiler framework that integrates static analysis, control-flow reasoning, and tiered AI-assisted diagnostics into a unified architecture. It targets native machine code via LLVM, reusing established optimization passes while maintaining predictability and safety.
Despite rapid progress in AI-based code assistants, most existing systems operate outside the compiler pipeline and provide post-hoc suggestions. Turflang bridges this gap by embedding adaptive diagnostic mechanisms directly within the compilation process to deliver enhanced, context-sensitive help messages and learning-oriented explanations.
- Getting Started for your first program
- Language Features for syntax and built-ins
- Compiler Architecture for understanding the pipeline
- Tiered Diagnostics for learning about the three tiers of AI diagnostics
- Examples you can copy and tweak
Want the bigger picture? See Implementation.