Skip to content

Commit

Permalink
tons of tries
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlesueur committed Mar 13, 2013
1 parent d258158 commit 958d695
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions dl3.js
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;
})
2 changes: 1 addition & 1 deletion drews_lang_2.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ poor_module("drews_lang", function () {
return linked_list return linked_list
} else { } else {
var item = list[list_i] var item = list[list_i]

} }
} }


Expand Down

0 comments on commit 958d695

Please sign in to comment.