Mech Documentation
Getting Started
Platform Reference
Data Model
atom- symbolic constants, often used for tags or enumsbool- logical values for true and falseempty- represents an absence of valuekind- a category of valuesnumber- numeric values, including integers and floating-point numbersstring- sequence of UTF-8 characters representing textData Structures
map- stores key-value pairs for fast lookupsmatrix- 2D array of homogenous values arranged in rows and columnsrecord- groups related fields, usually for representing structured dataset- unordered collection of unique valuestable- collection of heterogeneous data organized into rows and columnstuple- fixed-size, ordered grouping of heterogeneous valuesStatements and Expressions
Defining, Assigning, and Accessing Data
todo- create data and change itData Conversion
todo- convert data from one kind to anotherExpression Broadcasting - apply operations over data structures
Indexing - access elements within data structures
Program Model
Error Handling
todoState Machines
todoSynthesis and Generation
todoTests
todoPrograms
todo
Functions
Functions are branch-based and use pattern matching over inputs.
See: Functions Reference
Comprehensions
Comprehensions construct sets from generators and predicates in a concise declarative form.
System Model
Coming v0.4
Modules
Capabilities
Distributed Computation
Concurrency
Mechdown Reference
Introduction
What is Mechdown?
todoWriting Mechdown Documents
todoMechdown Syntax Overview
todoMechdown Documents
todoSections and Subsections
todoTables of Contents
todoBredcrumbs
todoDocument Metadata
todoDocument Elements
Standard Library
Guides
Project Design Documents
Examples
Fizz Buzz - a classic programming exercise that demonstrates the use of Mech's data model and operators.
N-Body Simulation - a simulation of gravitational interactions between multiple bodies.
Extended Kalman Filter - an implementation of the Extended Kalman Filter algorithm for state estimation.