Permalink
Browse files

Renamed parse to parse_insert.

  • Loading branch information...
1 parent cd2915b commit 531e41da2c31df262c4e01f4410edbbd33c69243 @luqui committed Jun 18, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 StructuralEditor.js
  2. +5 −5 StructuralFramework.js
View
@@ -72,7 +72,7 @@ event_node.keypress(function(e) {
if (typeof(zipper.expr) !== 'string') {
var ch = String.fromCharCode(e.charCode);
input_buffer += ch;
- var tokresult = zipper.expr.head.parse(zipper.expr)(input_buffer);
+ var tokresult = zipper.expr.head.parse_insert(zipper.expr)(input_buffer);
if (tokresult) {
input_buffer = tokresult[1];
update(new SF.Zipper(zipper.contexts, tokresult[0]));
View
@@ -152,7 +152,7 @@ $$.EClass = object({
render: function() {
return arguments_to_array(arguments);
},
- parse: function(expr) {
+ parse_insert: function(expr) {
return function(inp) {
var new_args = expr.args.slice(0);
for (var i = 0; i < expr.args.length; i++) {
@@ -162,7 +162,7 @@ $$.EClass = object({
continue;
}
- var tokresult = arg.head.parse(arg)(inp);
+ var tokresult = arg.head.parse_insert(arg)(inp);
if (tokresult) {
new_args[i] = tokresult[0];
inp = tokresult[1];
@@ -197,7 +197,7 @@ $$.Exp_box = function(cls, tokenizer) {
return [ elt('span', { 'class': 'box' }, text_node(' '))]
}
},
- parse: function(expr) {
+ parse_insert: function(expr) {
return tokenizer;
}
});
@@ -221,11 +221,11 @@ $$.Infix_assoc_view = function(cls, term_cls, term_tokenizer, op_cls, op_tokeniz
return new $$.EClass({
cls: cls,
- parse: function(expr) {
+ parse_insert: function(expr) {
var self = this;
return function(inp) {
// XXX __proto__ instead of prototype?
- var tokresult = self.__proto__.parse.call(self, expr)(inp);
+ var tokresult = self.__proto__.parse_insert.call(self, expr)(inp);
if (tokresult && tokresult[1] !== '') {
inp = tokresult[1];
var op_tokresult = op_tokenizer(inp);

0 comments on commit 531e41d

Please sign in to comment.