Single-character macros like active characters (#973)

* Single-character macros like active characters

* Rewrite README according to @kevinbarabash's comment
This commit is contained in:
Erik Demaine
2017-11-24 13:40:23 -05:00
committed by Kevin Barabash
parent b2698d35ec
commit ecad4de4ce
3 changed files with 8 additions and 2 deletions

View File

@@ -2633,6 +2633,12 @@ describe("A macro expander", function() {
expect("X \\implies Y").toBuild();
expect("X \\impliedby Y").toBuild();
});
it("should allow aliasing characters", function() {
compareParseTree("x=c", "x'=c", {
"": "'",
});
});
});
describe("A parser taking String objects", function() {