Skip to content

Commit

Permalink
KrancScript.m: Support new Piraha XML schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Mar 21, 2012
1 parent e6711d6 commit e3843fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tools/CodeGen/KrancScript.m
Expand Up @@ -34,10 +34,7 @@

code = Parse["kranc2.peg", "thorn", filename];

code = code /. ("startIndex" -> _) :> Sequence[];
code = code /. ("endIndex" -> _) :> Sequence[];

stringRules = XMLElement[s_,_,c_] :> s@@c;
stringRules = XMLElement["node",{___,"name"->s_,___},c_] :> s@@c;

thorn = code[[2]] //. stringRules;

Expand Down

0 comments on commit e3843fb

Please sign in to comment.