1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Term constructors.

This commit is contained in:
Rob Rix 2015-09-22 17:26:45 -04:00
parent a6473b9eff
commit 5b1f35d7ff

View File

@ -23,6 +23,14 @@ public enum Term: CustomDebugStringConvertible, CustomDocConvertible, CustomStri
return s.doc
}
}
public static let Apply = Syntax.Apply >>> Term.init
public static let Abstract = Syntax.Abstract >>> Term.init
public static let Assign = Syntax.Assign >>> Term.init
public static let Variable = Syntax.Variable >>> Term.init
public static let Literal = Syntax.Literal >>> Term.init
public static let Group = Syntax.Group >>> Term.init
}
public enum Syntax<Payload>: CustomDebugStringConvertible, CustomDocConvertible {