Why is programming so hard to learn? This book argues that the barrier isn't logic it's translation. ShellLite is a programming language designed to minimize "cognitive friction" by accepting English like commands while still maintaining the precision required for machine execution.
This book documents the complete internal architecture of ShellLite as a case study in human-centered language design. You will explore how to:
- Apply Cognitive Load Theory to syntax and language-design decisions
- Build a Controlled Natural Language (CNL) that is readable yet unambiguous
- Implement a full compiler pipeline: lexer → parser → AST → interpreter
- Design forgiving parsers that ignore filler words and allow multiple phrasings
- Bridge natural-language abstractions to low-level execution through FFI
- Improve performance via source-to-source transpilation into host languages
- Address the "Uncanny Valley" challenge that historically affected AppleScript and COBOL
Included in this work are:
A formal EBNF grammar specification, a full Python-based reference implementation, runtime architecture diagrams, performance benchmarks, and extensibility patterns applicable to any DSL project.
Perfect for: learning compilers, designing DSLs, research in programming language design, and anyone interested in making code more human readable.
Share This eBook: