-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d258158
commit 958d695
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
/* | |||
id fn x x | |||
id | |||
*/ | |||
|
|||
poor_module("drews_lang", function () { | |||
var to_string = Object.prototype.toString | |||
var is_array = function (a) { return to_string.call(a) == '[object Array]' } | |||
var is_function = function (obj) { return typeof obj === 'function'; } | |||
var is_string = function (a) { return to_string.call(a) == '[object String]' } | |||
var drews_expression = poor_module("drews_express") | |||
|
|||
var to_linked_list = function (list, list_i, linked_list) { | |||
if (list_i == list.length) { | |||
return linked_list | |||
} else { | |||
var item = list[list_i] | |||
} | |||
} | |||
|
|||
var evaluate = function (raw_code, _scope) { | |||
scope = _scope || {} | |||
if (is_array(raw_code)) { | |||
code = raw_code | |||
} else { | |||
code = drews_expression(raw_code) | |||
code = to_linked_list(code, 0, ) | |||
} | |||
return evaluate; | |||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters