ActiveLayerIndex 0 AutoAdjust CanvasColor w 1 CanvasOrigin {0, 0} CanvasScale 1 ColumnAlign 1 ColumnSpacing 36 CreationDate 2007-09-01 19:52:53 -0600 Creator Jeremy Siek DisplayScale 1 in = 1 in GraphDocumentVersion 5 GraphicsList Bounds {{371.437, 453.36}, {189, 140}} Class ShapedGraphic FitText Vertical Flow Resize ID 41 Shape Rectangle Style fill Draws NO shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 Action \f1\b0 \ulnone \ shift to state 1\ shift to state 4\ reduce by rule 3 to state 1, goto 3\ shift to state 5\ shift to state 4\ reduce by rule 3 to state 5, goto 6\ reduce by rule 2 to state 1, goto 3\ reduce by rule 1 to state 0, goto 2\ accept} Bounds {{278.437, 453.36}, {93, 140}} Class ShapedGraphic FitText Vertical Flow Resize ID 40 Shape Rectangle Style fill Draws NO shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 Input \f1\b0 \ulnone \ 'print 1 + 2'\ '1 + 2'\ '+ 2'\ '+ 2'\ '2'\ ''\ ''\ ''\ ''} Bounds {{17.6238, 453.36}, {260.813, 140}} Class ShapedGraphic FitText Vertical Flow Resize ID 39 Shape Rectangle Style fill Draws NO shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 Stack \f1\b0 \ulnone \ []\ [(1,PRINT)]\ [(1,PRINT),(4,INT)]\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \cf0 [(1,PRINT),(3,expression)]\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 [(1,PRINT),(3,expression),(5,+)]\ [(1,PRINT),(3,expression),(5,+),(4,INT)]\ [(1,PRINT),(3,expression),(5,+),(6,expression)]\ [(1,PRINT),(3,expression)]\ [(2,statement)]} Bounds {{19.6238, 437.36}, {176, 14}} Class ShapedGraphic FitText YES Flow Resize ID 38 Shape Rectangle Style fill Draws NO shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\b\fs24 \cf0 Example parse of 'print 1 + 2'} Wrap NO Bounds {{6.93042, 8}, {256, 70}} Class ShapedGraphic FitText YES Flow Resize ID 36 Shape Rectangle Style fill Draws NO shadow Draws NO stroke Width 2 Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\fs24 \cf0 Grammar:\ 0. start ::= statement\ 1. statement ::= PRINT expression\ 2. expression ::= expression PLUS expression\ 3. expression ::= INT} Wrap NO Bounds {{178.2, 397.22}, {75, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 30 Line ID 28 Position 0.13972456753253937 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;} {\colortbl;\red255\green255\blue255;\red255\green0\blue0;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\b\fs24 \cf2 PLUS, shift} Class LineGraphic Head ID 16 ID 28 Points {203.345, 388.602} {240.93, 421.387} {326.683, 390.956} Style stroke HeadArrow FilledArrow LineType 1 TailArrow 0 Tail ID 24 Bounds {{309.092, 401.563}, {99, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 26 Line ID 25 Position 0.17646275460720062 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 expression, goto} Class LineGraphic Head ID 24 ID 25 Points {375.843, 391.083} {332.83, 422.387} {256.011, 388.475} Style stroke HeadArrow FilledArrow LineType 1 TailArrow 0 Tail ID 16 Bounds {{20.9304, 294.273}, {256.313, 94}} Class ShapedGraphic ID 24 Shape Rectangle Style shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;\red255\green0\blue0;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 6 \f1\b0 \ulnone \ expression ::= expression PLUS expression .\ expression ::= expression . PLUS expression\ \ end, reduce by rule 2\ \f0\b \cf2 PLUS, reduce by rule 2} Bounds {{402.797, 284.449}, {71, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 20 Line ID 19 Position 0.45416185259819031 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 PLUS, shift} Class LineGraphic Head ID 16 ID 19 Points {444.32, 265.778} {431.058, 322.303} Style stroke HeadArrow FilledArrow TailArrow 0 Tail ID 10 Bounds {{309.578, 289.551}, {57, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 18 Line ID 17 Position 0.45588919520378113 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 INT, shift} Class LineGraphic Head ID 11 ID 17 Points {374.646, 322.5} {294.434, 265.58} Style stroke HeadArrow FilledArrow TailArrow 0 Tail ID 16 Bounds {{294.81, 322.789}, {256.313, 68}} Class ShapedGraphic ID 16 Shape Rectangle Style shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 5 \f1\b0 \ulnone \ expression ::= expression PLUS . expression\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 expression ::= . expression PLUS expression\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 expression ::= . INT} Bounds {{391.489, 151.187}, {99, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 15 Line ID 14 Position 0.31142687797546387 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 expression, goto} Class LineGraphic Head ID 10 ID 14 Points {438.692, 146.192} {446.067, 184.709} Style stroke HeadArrow FilledArrow TailArrow 0 Tail ID 3 Bounds {{319.385, 153.858}, {57, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 13 Line ID 12 Position 0.38223019242286682 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 INT, shift} Class LineGraphic Head ID 11 ID 12 Points {373.415, 145.953} {306.621, 184.948} Style stroke HeadArrow FilledArrow TailArrow 0 Tail ID 3 Bounds {{152.593, 185.2}, {170, 80.0913}} Class ShapedGraphic ID 11 Shape Rectangle Style shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 4 \f1\b0 \ulnone \ expression ::= INT .\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \cf0 \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \cf0 end, reduce by rule 3\ PLUS, reduce by rule 3} Bounds {{326.83, 185.2}, {254, 80.0913}} Class ShapedGraphic ID 10 Shape Rectangle Style shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 3 \f1\b0 \ulnone \ statement ::=PRINT expression .\ expression ::= expression . PLUS expression\ \ end, reduce by rule 1} Bounds {{43.6987, 150.124}, {93, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 9 Line ID 8 Position 0.44184160232543945 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 statement, goto} Class LineGraphic Head ID 7 ID 8 Points {94.825, 137.873} {84.3545, 181.442} Style stroke HeadArrow FilledArrow TailArrow 0 Tail ID 2 Bounds {{21.0696, 183.387}, {116.743, 37}} Class ShapedGraphic ID 7 Shape Rectangle Style shadow Draws NO stroke GapRatio 0.5 Width 4 Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 2 \f1\b0 \ulnone \ start ::= statement .} Bounds {{207.92, 103.957}, {74, 14}} Class ShapedGraphic FitText YES FontInfo Color w 0 Font Helvetica Size 12 ID 6 Line ID 5 Position 0.45317202806472778 RotationType 0 Shape Rectangle Style shadow Draws NO stroke Draws NO Text Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural \f0\fs24 \cf0 PRINT, shift} Class LineGraphic Head ID 3 ID 5 Points {196.43, 110.764} {303.43, 111.19} Style stroke HeadArrow FilledArrow TailArrow 0 Tail ID 2 Bounds {{303.93, 77.7013}, {256.313, 68}} Class ShapedGraphic ID 3 Shape Rectangle Style shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 1 \f1\b0 \ulnone \ statement ::= PRINT . expression\ expression ::= . expression PLUS expression\ expression ::= . INT} Bounds {{6.93042, 83.3868}, {189, 54}} Class ShapedGraphic ID 2 Shape Rectangle Style shadow Draws NO Text Align 0 Text {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf420 {\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural \f0\b\fs24 \cf0 \ul \ulc0 State 0 \f1\b0 \ulnone \ start ::= . statement\ statement ::= . PRINT expression} GridInfo GuidesLocked NO GuidesVisible YES HPages 1 ImageCounter 1 IsPalette NO KeepToScale Layers Lock NO Name Layer 1 Print YES View YES LayoutInfo LinksVisible NO MagnetsVisible NO MasterSheet Master 1 MasterSheets ActiveLayerIndex 0 AutoAdjust CanvasColor w 1 CanvasOrigin {0, 0} CanvasScale 1 ColumnAlign 1 ColumnSpacing 36 DisplayScale 1 in = 1 in GraphicsList GridInfo HPages 1 IsPalette NO KeepToScale Layers Lock NO Name Layer 1 Print YES View YES LayoutInfo Orientation 2 OutlineStyle Basic RowAlign 1 RowSpacing 36 SheetTitle Master 1 UniqueID 1 VPages 1 ModificationDate 2007-09-02 14:59:38 -0600 Modifier Jeremy Siek NotesVisible NO Orientation 2 OriginVisible NO OutlineStyle Basic PageBreaks YES PrintInfo NSBottomMargin float 0 NSLeftMargin float 0 NSPaperSize size {612, 792} NSRightMargin float 0 NSTopMargin float 0 ReadOnly NO RowAlign 1 RowSpacing 36 SheetTitle Canvas 1 SmartAlignmentGuidesActive YES SmartDistanceGuidesActive YES UniqueID 1 UseEntirePage VPages 1 WindowInfo CurrentSheet 0 DrawerOpen DrawerTab Outline DrawerWidth 209 FitInWindow Frame {{278, 196}, {709, 940}} ShowRuler ShowStatusBar VisibleRegion {{-53, -29}, {694, 826}} Zoom 1