aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-04 11:23:48 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-04 11:23:48 +0100
commit689a0c0b4955e5325c5409855632a3d4a154b41e (patch)
tree9b6283b8620f053f33025cf7511daef71d261d03 /src/checker.cpp
parentbc16b290ba6c2168baf1153b4c7691e679f68b46 (diff)
*_of as keyords; Allow constant aliasing for user/built-in procedures, import names, and library names
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 8c692080a..3586f7986 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -61,6 +61,12 @@ enum BuiltinProcId {
BuiltinProc_abs,
BuiltinProc_clamp,
+/* BuiltinProc_sqrt,
+ BuiltinProc_sin,
+ BuiltinProc_cos,
+ BuiltinProc_tan,
+ BuiltinProc_pow, */
+
BuiltinProc_transmute,
BuiltinProc_DIRECTIVE, // NOTE(bill): This is used for specialized hash-prefixed procedures
@@ -107,6 +113,14 @@ gb_global BuiltinProc builtin_procs[BuiltinProc_COUNT] = {
{STR_LIT("abs"), 1, false, Expr_Expr},
{STR_LIT("clamp"), 3, false, Expr_Expr},
+/*
+ {STR_LIT("__sqrt"), 1, false, Expr_Expr},
+ {STR_LIT("__sin"), 1, false, Expr_Expr},
+ {STR_LIT("__cos"), 1, false, Expr_Expr},
+ {STR_LIT("__tan"), 1, false, Expr_Expr},
+ {STR_LIT("__pow"), 2, false, Expr_Expr},
+ */
+
{STR_LIT("transmute"), 2, false, Expr_Expr},
{STR_LIT(""), 0, true, Expr_Expr}, // DIRECTIVE