leg compiler: use switch optimization
This commit is contained in:
parent
ec93c2ee28
commit
d5e7262b62
2
Makefile
2
Makefile
@ -47,7 +47,7 @@ VCS-PULLFLAGS =
|
|||||||
#
|
#
|
||||||
LEG = ./peg/leg/leg
|
LEG = ./peg/leg/leg
|
||||||
%.leg.go: %.leg $(LEG)
|
%.leg.go: %.leg $(LEG)
|
||||||
$(LEG) $<
|
$(LEG) -switch $<
|
||||||
|
|
||||||
$(LEG):
|
$(LEG):
|
||||||
if(! test -d peg); then make peg; fi
|
if(! test -d peg); then make peg; fi
|
||||||
|
@ -105,6 +105,7 @@ type Doc struct {
|
|||||||
|
|
||||||
%YYSTYPE *element
|
%YYSTYPE *element
|
||||||
|
|
||||||
|
%switchexcl(HtmlBlock Code Title RefTitle)
|
||||||
|
|
||||||
Doc = a:StartList ( Block { a = cons($$, a) } )*
|
Doc = a:StartList ( Block { a = cons($$, a) } )*
|
||||||
{ p.tree = reverse(a) }
|
{ p.tree = reverse(a) }
|
||||||
|
Loading…
Reference in New Issue
Block a user