[Gardeners] Simple request for someone with graphical abilities
lispgeek@gmail.com
lispgeek at gmail.com
Wed Apr 19 20:56:55 CDT 2006
>>>>> "PS" == Peter Seibel <peter at gigamonkeys.com> writes:
PS> For the FAQ I need a simple diagram of a parse tree. Here's an
PS> ASCII art sketch:
PS> *
PS> / \
PS> / \
PS> / \
PS> + -
PS> / \ / \
PS> 1 2 3 4
PS> If someone could make a reasonable looking .png of such a
PS> diagram, maybe with circles for the nodes, that'd be a great
PS> help.
Below is a troff/pic version. If you don't want the circles, you can
change all instances of 'circle' to 'circle invisible'.
-- dtm
--8<---------------cut here---------------start------------->8---
.ps 20
.vs 22
.DS CB
.PS
down_len = 1.0
side_len = 1.0
#
C1: circle "*"
move down down_len left side_len from C1.s
C2: circle "+"
move down down_len right side_len from C1.s
C3: circle "-"
move down down_len left from C2.s
C4: circle "1"
move down down_len right from C2.s
C5: circle "2"
move down down_len left from C3.s
C6: circle "3"
move down down_len right from C3.s
C7: circle "4"
#
line from C1.s to C2.n
line from C1.s to C3.n
line from C2.s to C4.n
line from C2.s to C5.n
line from C3.s to C6.n
line from C3.s to C7.n
.PE
.DE
--8<---------------cut here---------------end--------------->8---
More information about the Gardeners
mailing list