Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #implicitCopy
- #ignore["wnl"] ::= ' ' | '\t';
- defines ::= #ignore("wnl") [directives]+ #continue #empty
- ;
- directives ::=
- #explicitCopy
- [
- '#' [#readIdentifier:{"define"}] [#readIdentifier: def] [#readIdentifier : rep]
- => insert this.defines[def] = rep;
- => traceLine("def = " + def + " rep = " + rep);
- ]
- '\n' => traceLine("newline at macro's end:");
- | #explicitCopy
- [
- #readIdentifier : word ['\n']?
- [#check(findElement(word, this.defines))
- => {%>@this.defines[word]@<%}
- |=> {%>@word@<%}
- ]
- ]
- | '\n' => traceLine("newline");
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement