diff --git a/docs/BNF.md b/docs/BNF.md new file mode 100644 index 0000000..e6ecc1a --- /dev/null +++ b/docs/BNF.md @@ -0,0 +1,161 @@ +# Myc Language Specification & LLM Prompt Guide + +This document defines the syntax (BNF) and semantics of the Myc language, a Lisp-like language designed for financial analysis with first-class abstract syntax trees (ASTs), closures, and a pipeline evaluation model. It serves as a foundational context for Large Language Models (LLMs) to understand and write idiomatic Myc code. + +## 1. Syntax (BNF) + +```ebnf + ::= * + + ::= + | + | + | + |