www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a95b93789abb0b7e7121a3f33f7b73af821865d3
parent 29fde5d36451a7f863d096fa9a0185454c4fa818
Author: Emily Eisenberg <xymostech@gmail.com>
Date:   Tue,  9 Jul 2013 21:14:04 -0700

Make {} turn things into ords

Auditors: spicyj

Diffstat:
MMJLite.js | 2++
Mparser.jison | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/MJLite.js b/MJLite.js @@ -88,6 +88,8 @@ var buildGroup = function(group, prev) { return makeSpan("rlap", inner); } else if (group.type === "punct") { return makeSpan("mpunct", textit(group.value)); + } else if (group.type === "ordgroup") { + return makeSpan("mord", buildExpression(group.value)); } else { console.log("Unknown type:", group.type); } diff --git a/parser.jison b/parser.jison @@ -36,7 +36,7 @@ group : atom {$$ = $1;} | '{' ex '}' - {$$ = $2;} + {$$ = [{type: 'ordgroup', value: $2}];} | func {$$ = $1;} ;