[antlr-interest] parsing rules
Randall R Schulz
rschulz at sonic.net
Fri May 28 06:25:49 PDT 2010
On Wednesday May 26 2010, George Soom wrote:
> Hi,
>
> I have to rewrite several files with mathematical text in them. Text
> substitutions are really simple (e.g. 'a=4' -> 'a:=4;' and similar).
> Input is in form:
> ----
> a=4
> b=3
> draw(a)
> draw(b)
> ----
>
> Needed output
> -----
> a:=4;
> b:=3;
> draw(a, "constant arguments")
> draw(b, "constant arguments")
> ----
Why don't you just use sed?
Randall Schulz
More information about the antlr-interest
mailing list