UNPKG

karel

Version:

Compilador y evaluador de Karel en javascript

1,537 lines (1,536 loc) 90.8 kB
<!DOCTYPE html> <html xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" > <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta content="Word.Document" name="ProgId" /> <meta content="Microsoft Word 12" name="Generator" /> <meta content="Microsoft Word 12" name="Originator" /> <link href="JarelSyntax_archivos/filelist.xml" rel="File-List" /> <link href="JarelSyntax_archivos/editdata.mso" rel="Edit-Time-Data" /> <!--[if !mso]> <style> v\:* { behavior: url(#default#VML); } o\:* { behavior: url(#default#VML); } w\:* { behavior: url(#default#VML); } .shape { behavior: url(#default#VML); } </style> <![endif]--> <title>BNF for Karel: Java Syntax</title> <!--[if gte mso 9 ]><xml> <o:DocumentProperties> <o:Author>Cesar Cepeda</o:Author> <o:LastAuthor>Cesar Cepeda</o:LastAuthor> <o:Revision>2</o:Revision> <o:TotalTime>1</o:TotalTime> <o:Created>2007-06-07T16:33:00Z</o:Created> <o:LastSaved>2007-06-07T16:34:00Z</o:LastSaved> <o:Pages>2</o:Pages> <o:Words>708</o:Words> <o:Characters>3896</o:Characters> <o:Company>Auronix SA de CV</o:Company> <o:Lines>32</o:Lines> <o:Paragraphs>9</o:Paragraphs> <o:CharactersWithSpaces>4595</o:CharactersWithSpaces> <o:Version>12.00</o:Version> </o:DocumentProperties> </xml><! [endif]--> <link href="JarelSyntax_archivos/themedata.thmx" rel="themeData" /> <link href="JarelSyntax_archivos/colorschememapping.xml" rel="colorSchemeMapping" /> <!--[if gte mso 9 ]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:TrackMoves>false</w:TrackMoves> <w:TrackFormatting /> <w:HyphenationZone>21</w:HyphenationZone> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>ES-MX</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="==" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr ></w:WordDocument> </xml ><![endif]--> <!--[if gte mso 9 ]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267" > <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml ><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast;} h1 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"T\00EDtulo 1 Car"; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; mso-outline-level:1; font-size:24.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; font-weight:bold;} h2 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"T\00EDtulo 2 Car"; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; mso-outline-level:2; font-size:18.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; font-weight:bold;} h3 {mso-style-priority:9; mso-style-unhide:no; mso-style-qformat:yes; mso-style-link:"T\00EDtulo 3 Car"; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; mso-outline-level:3; font-size:13.5pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; font-weight:bold;} p {mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast;} span.Ttulo2Car {mso-style-name:"T\00EDtulo 2 Car"; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"T\00EDtulo 2"; mso-ansi-font-size:13.0pt; mso-bidi-font-size:13.0pt; font-family:"Cambria","serif"; mso-ascii-font-family:Cambria; mso-ascii-theme-font:major-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:major-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:major-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:major-bidi; color:#4F81BD; mso-themecolor:accent1; font-weight:bold;} span.Ttulo3Car {mso-style-name:"T\00EDtulo 3 Car"; mso-style-noshow:yes; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"T\00EDtulo 3"; mso-ansi-font-size:12.0pt; mso-bidi-font-size:12.0pt; font-family:"Cambria","serif"; mso-ascii-font-family:Cambria; mso-ascii-theme-font:major-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:major-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:major-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:major-bidi; color:#4F81BD; mso-themecolor:accent1; font-weight:bold;} span.Ttulo1Car {mso-style-name:"T\00EDtulo 1 Car"; mso-style-priority:9; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"T\00EDtulo 1"; mso-ansi-font-size:14.0pt; mso-bidi-font-size:14.0pt; font-family:"Cambria","serif"; mso-ascii-font-family:Cambria; mso-ascii-theme-font:major-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:major-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:major-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:major-bidi; color:#365F91; mso-themecolor:accent1; mso-themeshade:191; font-weight:bold;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1243832032; mso-list-template-ids:-1958322938;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7; mso-level-tab-stop:36.0pt; mso-level-number-position:left; text-indent:-18.0pt; mso-ansi-font-size:10.0pt; font-family:Symbol;} ol {margin-bottom:0cm;} ul {margin-bottom:0cm;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable { mso-style-name: 'Tabla normal'; mso-tstyle-rowband-size: 0; mso-tstyle-colband-size: 0; mso-style-noshow: yes; mso-style-priority: 99; mso-style-qformat: yes; mso-style-parent: ''; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-para-margin: 0cm; mso-para-margin-bottom: 0.0001pt; mso-pagination: widow-orphan; font-size: 10pt; font-family: 'Times New Roman', 'serif'; } </style> <![endif]--> <!--[if gte mso 9 ]><xml> <o:shapedefaults v:ext="edit" spidmax="2050" /> </xml ><![endif]--> <!--[if gte mso 9 ]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml ><![endif]--> </head> <body background="../Common/workbook2.gif" bgcolor="white" lang="ES-MX" link="blue" style="tab-interval: 35.4pt;" vlink="purple" > <div class="Section1"> <h2 align="center" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >KAREL OMI Versión 2.0 por Cesar Cepeda<br /> Para comentarios escriba a cesar@auronix.com</span > </h2> <h3 align="center" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >Revisado por Eduardo <span class="SpellE">Urias</span> Barrientos AKA <span class="SpellE">Wero</span> <span class="SpellE">Shinoda</span></span > </h3> <h1 align="center" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >&nbsp;<a href="KarelJAVA.html">TUTORIAL DE KAREL</a></span > </h1> <h1 align="center" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >BNF para <span class="SpellE">Karel</span>: <span class="SpellE">Síntaxis</span> de Java</span > </h1> <div align="center"> <table border="0" cellpadding="0" class="MsoNormalTable" style=" mso-cellspacing: 1.5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 7.5pt 7.5pt 7.5pt 7.5pt; " > <tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod2" name="prod2" ><span style="mso-fareast-font-family: 'Times New Roman';" >Declaración de programa</span ></a > <span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="width: 16.5pt; padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top" width="22" > <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p> "<span class="SpellE">class</span> <span class="SpellE">program</span> { "<br /> &nbsp; &nbsp; &nbsp;[ <a href="#prod4">Declaración de Método</a>] ...<br /> &nbsp; &nbsp; &nbsp;"<span class="SpellE">program</span> () "<br /> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<a href="#prod11">Bloque</a ><br /> "}"<br /> &nbsp;<a href="#EOF">EOF</a> </p> </td> </tr> <tr style="mso-yfti-irow: 1;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod4" name="prod4" ><span style="mso-fareast-font-family: 'Times New Roman';" >Declaración de método</span ></a > <span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" ><a href="#prod9">Tipo</a> &nbsp; <a href="#prod10">Firma de método</a><br /> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;<a href="#prod11" >Bloque</a ></span > </p> </td> </tr> <tr style="mso-yfti-irow: 2;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"></td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"></td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"></td> </tr> <tr style="mso-yfti-irow: 3;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod10" name="prod10" ><span style="mso-fareast-font-family: 'Times New Roman';" >Firma de método</span ></a > <span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" ><a href="#Identifier">Identificador</a> &nbsp;<a href="#prod12" >Parámetro opcional</a ></span > </p> </td> </tr> <tr style="mso-yfti-irow: 4;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod12" name="prod12" ><span style="mso-fareast-font-family: 'Times New Roman';" >Parámetro</span ></a > <span style="mso-fareast-font-family: 'Times New Roman';" >opcional</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" >"(" [ <a href="#Identifier">Identificador</a> ] ")"</span > </p> </td> </tr> <tr style="mso-yfti-irow: 5;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod9" name="prod9" ><span style="mso-fareast-font-family: 'Times New Roman';" >Tipo</span ></a ><span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" >{ "<span class="SpellE">void</span>" | "define" }f</span > </p> </td> </tr> <tr style="mso-yfti-irow: 6;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod14" name="prod14" ><span style="mso-fareast-font-family: 'Times New Roman';" >Argumento vacío</span ></a > <span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" >"(" ")"</span > </p> </td> </tr> <tr style="mso-yfti-irow: 7;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod15" name="prod15" ><span style="mso-fareast-font-family: 'Times New Roman';" >Argumento opcional</span ></a > <span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" >"(" [ <a href="#prod16" ><span class="SpellE">Expresion</span> entera</a > ] ")"</span > </p> </td> </tr> <tr style="mso-yfti-irow: 8;"> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="right" class="MsoNormal" style="text-align: right;"> <a id="prod8" name="prod8" ><span style="mso-fareast-font-family: 'Times New Roman';" >Expresión</span ></a ><span style="mso-fareast-font-family: 'Times New Roman';" ></span> </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p align="center" class="MsoNormal" style="text-align: center;"> <span style="mso-fareast-font-family: 'Times New Roman';" >::=</span > </p> </td> <td style="padding: 7.5pt 7.5pt 7.5pt 7.5pt;" valign="top"> <p class="MsoNormal"> <span style="mso-fareast-font-family: 'Times New Roman';" >( <a href="#prod11">Bloque</a><br /> | <a href="#prod17">Expresión vacía</a><br /> | <a href="#prod18">Expresión <span class="SpellE">if</span></a ><br /> | <a href="#prod19" >Expresión <span class="SpellE">while</span></a ><br /> | <a href="#prod20" >Expresión <span class="SpellE">iterate</span></a ><br /> | <a href="#prod21" >Expresión <span class="SpellE">turnoff</span></a ><br /> | <a href="#prod22" >Expresión <span class="SpellE">turnleft</span