[Commit] mint-2004b architecture.fig,1.1.1.1,1.2 lola.tex,1.3,1.4

Bart Massey commit at keithp.com
Wed Dec 1 13:41:03 PST 2004


Committed by: bart

Update of /local/src/CVS/mint-2004b
In directory home.keithp.com:/tmp/cvs-serv25897

Modified Files:
	architecture.fig lola.tex 
Log Message:
Figure hacking and related edits.



Index: architecture.fig
===================================================================
RCS file: /local/src/CVS/mint-2004b/architecture.fig,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- architecture.fig	1 Dec 2004 06:46:59 -0000	1.1.1.1
+++ architecture.fig	1 Dec 2004 21:41:00 -0000	1.2
@@ -1,4 +1,4 @@
-#FIG 3.2
+#FIG 3.2  Produced by xfig version 3.2.5-alpha5
 Portrait
 Center
 Inches
@@ -7,83 +7,72 @@
 Single
 -2
 1200 2
-6 5203 3039 5718 3586
-6 5258 3155 5663 3470
-4 0 0 50 0 4 10 0.0000 2 150 405 5258 3275 lexing\001
-4 0 0 50 0 4 10 0.0000 2 120 330 5258 3470 table\001
--6
-2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 5203 3039 5718 3039 5718 3586 5203 3586 5203 3039
--6
-6 3000 2636 7080 2786
-4 0 0 50 0 4 10 0.0000 2 120 930 6150 2756 MINT runtime\001
-4 0 0 50 0 4 10 0.0000 2 120 645 5107 2756 table files\001
-4 0 0 50 0 4 10 0.0000 2 150 1530 3000 2756 parser/lexer generator\001
--6
-6 5200 4037 5715 4585
-6 5202 4138 5712 4483
-4 0 0 50 0 4 10 0.0000 2 120 330 5202 4483 table\001
-4 0 0 50 0 4 10 0.0000 2 150 510 5202 4258 parsing\001
--6
-2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 5200 4037 5715 4037 5715 4585 5200 4585 5200 4037
--6
 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 4655 3296 5203 3296
-2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 4655 4295 5203 4295
+	1 1 2.00 45.68 91.36
+	 4331 3220 4816 3220
 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 5718 3296 6266 3296
+	1 1 2.00 45.68 91.36
+	 5273 3220 5758 3220
 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 5718 4295 6266 4295
+	1 1 2.00 45.68 91.36
+	 5273 4105 5758 4105
 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 6620 3586 6620 4037
+	1 1 2.00 45.68 91.36
+	 6072 3477 6072 3876
 2 1 0 1 0 7 50 0 -1 6.000 0 0 -1 1 0 4
-	1 1 2.00 51.54 103.08
-	 3560 3747 3689 3747 3689 3296 3914 3296
+	1 1 2.00 45.68 91.36
+	 3360 3619 3474 3619 3474 3220 3674 3220
 2 1 0 1 0 7 50 0 -1 6.000 0 0 -1 1 0 4
-	1 1 2.00 51.54 103.08
-	 3560 3844 3689 3844 3689 4295 3914 4295
+	1 1 2.00 45.68 91.36
+	 3360 3705 3474 3705 3474 4105 3674 4105
 2 1 0 1 0 7 50 0 -1 6.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 2432 3779 2819 3779
+	1 1 2.00 45.68 91.36
+	 2360 3648 2703 3648
 2 4 1 1 0 7 50 0 -1 4.000 0 0 3 0 0 5
-	 4816 4810 4816 2813 2593 2813 2593 4810 4816 4810
+	 4473 4561 4473 2792 2503 2792 2503 4561 4473 4561
 2 4 1 1 0 7 50 0 -1 4.000 0 0 3 0 0 5
-	 7275 4800 7275 2813 6000 2813 6000 4800 7275 4800
+	 6653 4553 6653 2792 5523 2792 5523 4553 6653 4553
 2 4 1 1 0 7 50 0 -1 4.000 0 0 3 0 0 5
-	 5850 4800 5850 2813 4977 2813 4977 4800 5850 4800
+	 5390 4553 5390 2792 4616 2792 4616 4553 5390 4553
 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 7548 3300 7009 3300
+	1 1 2.00 45.68 91.36
+	 6895 3223 6417 3223
 2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 2819 3554 3560 3554 3560 4101 2819 4101 2819 3554
+	 2703 3448 3360 3448 3360 3933 2703 3933 2703 3448
 2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 3914 3039 4655 3039 4655 3586 3914 3586 3914 3039
+	 3674 2992 4331 2992 4331 3477 3674 3477 3674 2992
 2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 3914 4037 4655 4037 4655 4585 3914 4585 3914 4037
+	 3674 3876 4331 3876 4331 4362 3674 4362 3674 3876
 2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 6266 3039 7007 3039 7007 3586 6266 3586 6266 3039
+	 5758 2992 6415 2992 6415 3477 5758 3477 5758 2992
 2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
-	 6266 4037 7007 4037 7007 4585 6266 4585 6266 4037
+	 5758 3876 6415 3876 6415 4362 5758 4362 5758 3876
 2 1 0 1 0 7 50 0 -1 0.000 0 0 -1 1 0 2
-	1 1 2.00 51.54 103.08
-	 7009 4275 7557 4275
-4 0 0 50 0 4 10 0.0000 2 120 600 1800 3900 grammar\001
-4 0 0 50 0 4 10 0.0000 2 150 345 1800 3750 input\001
-4 0 0 50 0 4 10 0.0000 2 150 690 7596 4315 parse tree\001
-4 0 0 50 0 4 10 0.0000 2 120 435 2850 4022 parser\001
-4 0 0 50 0 4 10 0.0000 2 120 600 2850 3872 grammar\001
-4 0 0 50 0 4 10 0.0000 2 120 375 2850 3722 MINT\001
-4 0 0 50 0 4 10 0.0000 2 120 330 3975 3260 lexer\001
-4 0 0 50 0 4 10 0.0000 2 150 675 3975 3455 generator\001
-4 0 0 50 0 4 10 0.0000 2 120 435 3975 4243 parser\001
-4 0 0 50 0 4 10 0.0000 2 150 675 3975 4438 generator\001
-4 0 0 50 0 4 10 0.0000 2 120 330 6471 3372 lexer\001
-4 0 0 50 0 4 10 0.0000 2 120 435 6419 4341 parser\001
-4 0 0 50 0 4 10 0.0000 2 150 795 7592 3355 input string\001
+	1 1 2.00 45.68 91.36
+	 6417 4087 6903 4087
+2 1 0 1 0 7 50 0 -1 0.000 0 0 7 0 0 2
+	 4331 4105 4816 4105
+2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
+	 4814 3876 5270 3876 5270 4362 4814 4362 4814 3876
+2 2 0 1 0 7 50 0 -1 4.000 0 0 -1 0 0 5
+	 4816 2992 5273 2992 5273 3477 4816 3477 4816 2992
+4 0 0 50 0 4 8 0.0000 2 135 300 1800 3622 input\001
+4 0 0 50 0 4 8 0.0000 2 105 525 1800 3755 grammar\001
+4 0 0 50 0 4 8 0.0000 2 105 390 2731 3863 parser\001
+4 0 0 50 0 4 8 0.0000 2 105 525 2731 3730 grammar\001
+4 0 0 50 0 4 8 0.0000 2 105 315 2731 3597 MINT\001
+4 0 0 50 0 4 8 0.0000 2 120 585 3728 3361 generator\001
+4 0 0 50 0 4 8 0.0000 2 105 300 3728 3188 lexer\001
+4 0 0 50 0 4 8 0.0000 2 105 390 3728 4059 parser\001
+4 0 0 50 0 4 8 0.0000 2 120 585 3728 4232 generator\001
+4 0 0 50 0 4 8 0.0000 2 135 450 4815 4072 parsing\001
+4 0 0 50 0 4 8 0.0000 2 105 300 4815 4272 table\001
+4 0 0 50 0 4 8 0.0000 2 105 300 4865 3374 table\001
+4 0 0 50 0 4 8 0.0000 2 135 360 4865 3201 lexing\001
+4 0 0 50 0 4 8 0.0000 2 105 300 5940 3287 lexer\001
+4 0 0 50 0 4 8 0.0000 2 105 390 5894 4146 parser\001
+4 0 0 50 0 4 8 0.0000 2 120 630 6937 4123 parse tree\001
+4 0 0 50 0 4 8 0.0000 2 135 690 6934 3272 input string\001
+4 0 0 50 0 4 8 0.0000 2 105 600 4731 2741 table files\001
+4 0 0 50 0 4 8 0.0000 2 135 1365 2864 2741 parser/lexer generator\001
+4 0 0 50 0 4 8 0.0000 2 105 810 5696 2741 MINT runtime\001

Index: lola.tex
===================================================================
RCS file: /local/src/CVS/mint-2004b/lola.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- lola.tex	1 Dec 2004 21:18:35 -0000	1.3
+++ lola.tex	1 Dec 2004 21:41:00 -0000	1.4
@@ -11,18 +11,21 @@
 The Flo tool is a grammar-to-grammar transformation tool to factor left
 common sub-expressions out of a grammar to permit more compact and easier to
 understand representations of LL(1) languages.  It is also written in
-Kalypso.  Grammars are represented in lisp s-expressions as in
+Kalypso.  Grammars are represented in LISP s-expressions as in
 Figure~\ref{fig-lola-grammar}, eliminating the need for a custom grammar
 parser and permitting easier grammar-to-grammar transformation tool
 development.  Grammar descriptions can also include
 semantic action tokens executed at compile time.
 
 \begin{figure}
+\begin{center}
+\begin{minipage}[t]{0.45\linewidth}
 \scriptsize
 \begin{verbatim}
 ;
 ; this grammar recognises integer
-; expressions involving +,-,*,/ and unary -
+; expressions involving +,-,*,/
+; and unary -
 ;
 (
 (lines  (expr "PRINT" \n lines)
@@ -37,6 +40,11 @@
         (fact / fact "DIVIDE")
         (fact)
         )
+\end{verbatim}
+\end{minipage}
+\begin{minipage}[t]{0.45\linewidth}
+\scriptsize
+\begin{verbatim}
 (fact   (|(| expr |)|)
         (int "PUSH")
         (- fact "NEGATE")
@@ -51,7 +59,9 @@
         )
 )
 \end{verbatim}
+\end{minipage}
 \caption{A sample Lola grammar}\label{fig-lola-grammar}
+\end{center}
 \end{figure}
 
 Lola and Flo were conceived as an alternative to ad hoc




More information about the Commit mailing list