summaryrefslogtreecommitdiff
path: root/parse/trait.def
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-16 20:09:44 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-16 20:50:19 -0800
commit07c78ed9c77feed62b7f306049ed3c90d4753024 (patch)
tree63e5feb6cb00a0af68de9ce3f71b01dda0eb682c /parse/trait.def
parent543b764108c7bb18759d7db4058636f98972cbfb (diff)
downloadmc-07c78ed9c77feed62b7f306049ed3c90d4753024.tar.gz
Add in builtin iterable trait.
Diffstat (limited to 'parse/trait.def')
-rw-r--r--parse/trait.def13
1 files changed, 7 insertions, 6 deletions
diff --git a/parse/trait.def b/parse/trait.def
index 627ca9c..eacf685 100644
--- a/parse/trait.def
+++ b/parse/trait.def
@@ -1,7 +1,8 @@
/* Definitions of built in constraints */
-Tc(Tcnum, "numeric") /* arith ops */
-Tc(Tcint, "integral") /* behaves like an int, defaults to int as fallback */
-Tc(Tcfloat, "floating") /* behaves like a float, defaults to float as fallback */
-Tc(Tcidx, "indexable") /* indexable */
-Tc(Tcslice, "sliceable") /* sliceable */
-Tc(Tcfunc, "function") /* behaves like a function */
+Tc(Tcnum, "numeric") /* arith ops */
+Tc(Tcint, "integral") /* behaves like an int, defaults to int as fallback */
+Tc(Tcfloat, "floating") /* behaves like a float, defaults to float as fallback */
+Tc(Tcidx, "indexable") /* indexable */
+Tc(Tcslice, "sliceable") /* sliceable */
+Tc(Tcfunc, "function") /* behaves like a function */
+Tc(Tciter, "iterable") /* behaves like a function */