Skip to main content

Overview

This section provides detailed, technical documentation of Mux's syntax and semantics.

Purpose

The Language Reference is the authoritative source for:

  • Exact syntax definitions
  • Semantic behavior
  • Edge cases and corner cases
  • Implementation details

This is different from the Language Guide, which focuses on teaching and examples.

Contents

Core Reference

TopicDescription
Lexical StructureTokens, keywords, identifiers, literals, comments
OperatorsOperator precedence, associativity, behavior

Behavior Reference

TopicDescription
StatementsDetailed semantics of each statement type
ExpressionsExpression evaluation rules
Memory ModelReference counting specifics

Quick Reference

TopicDescription
OperatorsOperator precedence table
Memory ModelMemory layout diagrams

Reference vs Guide

Language GuideLanguage Reference
Learning-orientedReference-oriented
Concept explanationsPrecise rules
Practical examplesFormal definitions
Progressive complexityTopic-by-topic organization

Additional Resources

Contributing

If you find discrepancies between documentation and implementation, please file an issue.