TextMate grammar for the MeTTa programming language, packaged for use with GitHub Linguist.
MeTTa (Meta Type Talk) is a programming language developed by SingularityNET / OpenCog Hyperon for cognitive computing and artificial general intelligence research.
- Scope name:
source.metta - File extension:
.metta
Highlights the following MeTTa constructs:
- Comments (
;) - Strings (
"...") - Numbers (integers and floats)
- Variables (
$x,$head) - Operators:
=(definition),:(type annotation),->(arrow type),!(evaluation) - Core forms:
match,let,let*,if,case,import!,include,bind!,pragma! - Built-in functions:
get-type,collapse,superpose,assertEqual,car-atom,cdr-atom, etc. - Built-in types:
Type,Atom,Symbol,Expression,Number,Bool,String - Booleans:
True,False - Space references:
&self,&space
MIT — see LICENSE.