Advertisement
Blizzardo1

Blizzeta Syntax

Feb 2nd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.27 KB | None | 0 0
  1. ============================================================
  2. GOLD Parser Builder
  3. Version 5.2.0.
  4. ============================================================
  5.  
  6.  
  7. ========================================
  8. Grammar
  9. ========================================
  10.  
  11. ! The grammar table file was successfully loaded.
  12. !
  13. ! The file only contains the Symbol Table, Production Table, LALR State Table
  14. ! DFA State Table and other related objects; not the original grammar.
  15. !
  16. ! The Defined Character Sets are blank since these are used for the
  17. ! construction of the Deterministic Finite Automata (used by the
  18. ! tokenizer) and not saved to the file (although it does contain
  19. ! character sets created at runtime).
  20. !
  21. ! In addition, the configurations normally displayed in the LALR State
  22. ! Table are not present. These are created at compile-time to create
  23. ! the parser's LALR table and are also not saved to the file.
  24.  
  25.  
  26.  
  27. ========================================
  28. Grammar Properties
  29. ========================================
  30.  
  31. Name Blizzeta Chat Syntax
  32. Version 1.0
  33. Author Adonis S. Deliannis
  34. About A Simple Script Language that allows full interaction with an IRC Bot
  35. Character Set Unicode
  36. Character Mapping Windows-1252
  37. Generated By GOLD Parser Builder 5.2.0.
  38. Generated Date 2013-12-31 16:59
  39.  
  40.  
  41. ========================================
  42. Terminals
  43. ========================================
  44.  
  45. 0 (EOF)
  46. 1 (Error)
  47. 2 Whitespace
  48. 3 '-'
  49. 4 '!='
  50. 5 '$'
  51. 6 '%'
  52. 7 '('
  53. 8 ')'
  54. 9 '*'
  55. 10 '*='
  56. 11 ','
  57. 12 '/'
  58. 13 '/='
  59. 14 ';'
  60. 15 '@'
  61. 16 '{'
  62. 17 '}'
  63. 18 '+'
  64. 19 '+='
  65. 20 '<'
  66. 21 '<='
  67. 22 '='
  68. 23 '-='
  69. 24 '=='
  70. 25 '>'
  71. 26 '>='
  72. 27 are
  73. 28 Bool
  74. 29 CommentLine
  75. 30 def
  76. 31 do
  77. 32 else
  78. 33 for
  79. 34 how
  80. 35 Identifier
  81. 36 if
  82. 37 is
  83. 38 NewLine
  84. 39 Number
  85. 40 read
  86. 41 return
  87. 42 StringLiteral
  88. 43 what
  89. 44 when
  90. 45 where
  91. 46 while
  92. 47 who
  93. 48 why
  94. 49 write
  95.  
  96.  
  97. ========================================
  98. Nonterminals
  99. ========================================
  100.  
  101. 50 <Action>
  102. 51 <Bin Op>
  103. 52 <def>
  104. 53 <delm Opt>
  105. 54 <Expression>
  106. 55 <Expressions>
  107. 56 <Identifier Opt>
  108. 57 <List>
  109. 58 <nl>
  110. 59 <nl Opt>
  111. 60 <Program>
  112. 61 <Stmt>
  113. 62 <Stmts>
  114.  
  115.  
  116. ========================================
  117. Rules
  118. ========================================
  119.  
  120. 0 <nl> ::= NewLine <nl>
  121. 1 <nl> ::= NewLine
  122. 2 <nl Opt> ::= NewLine <nl Opt>
  123. 3 <nl Opt> ::=
  124. 4 <Identifier Opt> ::= Identifier <Identifier Opt>
  125. 5 <Identifier Opt> ::= Identifier ',' <Identifier Opt>
  126. 6 <Identifier Opt> ::=
  127. 7 <Expression> ::= Identifier
  128. 8 <Expression> ::= StringLiteral
  129. 9 <Expression> ::= Number
  130. 10 <Expression> ::= Bool
  131. 11 <Expression> ::= <Expression> <Bin Op> <Expression>
  132. 12 <Expressions> ::= <Expression> <Expressions>
  133. 13 <Expressions> ::=
  134. 14 <delm Opt> ::= ',' <nl Opt>
  135. 15 <delm Opt> ::=
  136. 16 <List> ::= <List> <Expression> <delm Opt>
  137. 17 <List> ::=
  138. 18 <Bin Op> ::= '+'
  139. 19 <Bin Op> ::= '-'
  140. 20 <Bin Op> ::= '*'
  141. 21 <Bin Op> ::= '/'
  142. 22 <Bin Op> ::= '<'
  143. 23 <Bin Op> ::= '>'
  144. 24 <Bin Op> ::= '='
  145. 25 <Bin Op> ::= '+='
  146. 26 <Bin Op> ::= '-='
  147. 27 <Bin Op> ::= '*='
  148. 28 <Bin Op> ::= '/='
  149. 29 <Bin Op> ::= '=='
  150. 30 <Bin Op> ::= '<='
  151. 31 <Bin Op> ::= '>='
  152. 32 <Bin Op> ::= '!='
  153. 33 <Action> ::= who
  154. 34 <Action> ::= what
  155. 35 <Action> ::= when
  156. 36 <Action> ::= where
  157. 37 <Action> ::= why
  158. 38 <Action> ::= how
  159. 39 <def> ::= is
  160. 40 <def> ::= are
  161. 41 <Stmt> ::= <Action> <def> Identifier <nl Opt> '{' <nl Opt> <List> <nl Opt> '}' ';' <nl Opt>
  162. 42 <Stmt> ::= if '(' <Expression> ')' <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' <nl Opt>
  163. 43 <Stmt> ::= if '(' <Expression> ')' <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' <nl Opt> else <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' <nl Opt>
  164. 44 <Stmt> ::= if '(' <Expression> ')' <nl Opt> <Stmt> <nl Opt>
  165. 45 <Stmt> ::= if '(' <Expression> ')' <nl Opt> <Stmt> else <nl Opt> <Stmt> <nl Opt>
  166. 46 <Stmt> ::= for '(' <Expression> ';' <Expression> ';' <Expression> ')' <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' <nl Opt>
  167. 47 <Stmt> ::= for '(' <Expression> ';' <Expression> ';' <Expression> ')' <nl Opt> <Stmt> <nl Opt>
  168. 48 <Stmt> ::= while '(' <Expression> ')' <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' <nl Opt>
  169. 49 <Stmt> ::= while '(' <Expression> ')' <nl Opt> <Stmt> <nl Opt>
  170. 50 <Stmt> ::= do <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' while '(' <Expression> ')' ';' <nl Opt>
  171. 51 <Stmt> ::= read '(' <Identifier Opt> ')' ';' <nl Opt>
  172. 52 <Stmt> ::= write '(' <Expression> ')' ';' <nl Opt>
  173. 53 <Stmt> ::= def Identifier '=' <Expression> ';' <nl Opt>
  174. 54 <Stmt> ::= def Identifier '=' <Stmt> ';' <nl Opt>
  175. 55 <Stmt> ::= Identifier <Bin Op> <Expression> ';' <nl Opt>
  176. 56 <Stmt> ::= '@' Identifier <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> '}' <nl Opt> ';' <nl Opt>
  177. 57 <Stmt> ::= '$' Identifier <nl Opt> '{' <nl Opt> <Stmts> <nl Opt> return <Expression> ';' <nl Opt> '}' <nl Opt>
  178. 58 <Stmt> ::= '%' Identifier '(' <Identifier Opt> ')' ';' <nl Opt>
  179. 59 <Stmts> ::= <Stmt> <Stmts>
  180. 60 <Stmts> ::=
  181. 61 <Program> ::= <nl Opt> <Stmts>
  182.  
  183.  
  184. ========================================
  185. DFA States
  186. ========================================
  187.  
  188. State 0
  189. Goto 1 &09, &0B, &0C, &20, &A0
  190. Goto 2 !
  191. Goto 4 $
  192. Goto 5 %
  193. Goto 6 (
  194. Goto 7 )
  195. Goto 8 ,
  196. Goto 9 ;
  197. Goto 10 @
  198. Goto 11 {
  199. Goto 12 }
  200. Goto 13 #
  201. Goto 14 BCGJKLMNOPQSUVXYZ_bcgjklmnopqsuvxyz
  202. Goto 16 &0A
  203. Goto 17 0123456789
  204. Goto 18 "
  205. Goto 23 &0D
  206. Goto 25 *
  207. Goto 27 +
  208. Goto 29 -
  209. Goto 31 /
  210. Goto 33 <
  211. Goto 35 =
  212. Goto 37 >
  213. Goto 39 Aa
  214. Goto 42 Dd
  215. Goto 46 Ee
  216. Goto 50 Ff
  217. Goto 57 Hh
  218. Goto 60 Ii
  219. Goto 63 Rr
  220. Goto 71 Tt
  221. Goto 75 Ww
  222.  
  223.  
  224. State 1
  225. Goto 1 &09, &0B, &0C, &20, &A0
  226.  
  227.  
  228. State 2
  229. Goto 3 =
  230.  
  231.  
  232. State 3
  233.  
  234.  
  235. State 4
  236.  
  237.  
  238. State 5
  239.  
  240.  
  241. State 6
  242.  
  243.  
  244. State 7
  245.  
  246.  
  247. State 8
  248.  
  249.  
  250. State 9
  251.  
  252.  
  253. State 10
  254.  
  255.  
  256. State 11
  257.  
  258.  
  259. State 12
  260.  
  261.  
  262. State 13
  263.  
  264.  
  265. State 14
  266. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  267.  
  268.  
  269. State 15
  270. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  271.  
  272.  
  273. State 16
  274.  
  275.  
  276. State 17
  277. Goto 17 0123456789
  278.  
  279.  
  280. State 18
  281. Goto 19 &09, &20, &21, &23 .. &5B, &5D .. &7E, &A0
  282. Goto 20 \
  283. Goto 22 "
  284.  
  285.  
  286. State 19
  287. Goto 19 &09, &20, &21, &23 .. &5B, &5D .. &7E, &A0
  288. Goto 20 \
  289. Goto 22 "
  290.  
  291.  
  292. State 20
  293. Goto 21 {Space}!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~{NBSP}
  294.  
  295.  
  296. State 21
  297. Goto 19 &09, &20, &21, &23 .. &5B, &5D .. &7E, &A0
  298. Goto 20 \
  299. Goto 22 "
  300.  
  301.  
  302. State 22
  303.  
  304.  
  305. State 23
  306. Goto 24 &0A
  307.  
  308.  
  309. State 24
  310.  
  311.  
  312. State 25
  313. Goto 26 =
  314.  
  315.  
  316. State 26
  317.  
  318.  
  319. State 27
  320. Goto 28 =
  321.  
  322.  
  323. State 28
  324.  
  325.  
  326. State 29
  327. Goto 30 =
  328.  
  329.  
  330. State 30
  331.  
  332.  
  333. State 31
  334. Goto 32 =
  335.  
  336.  
  337. State 32
  338.  
  339.  
  340. State 33
  341. Goto 34 =
  342.  
  343.  
  344. State 34
  345.  
  346.  
  347. State 35
  348. Goto 36 =
  349.  
  350.  
  351. State 36
  352.  
  353.  
  354. State 37
  355. Goto 38 =
  356.  
  357.  
  358. State 38
  359.  
  360.  
  361. State 39
  362. Goto 15 0123456789ABCDEFGHIJKLMNOPQSTUVWXYZ_abcdefghijklmnopqstuvwxyz
  363. Goto 40 Rr
  364.  
  365.  
  366. State 40
  367. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  368. Goto 41 Ee
  369.  
  370.  
  371. State 41
  372. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  373.  
  374.  
  375. State 42
  376. Goto 15 0123456789ABCDFGHIJKLMNPQRSTUVWXYZ_abcdfghijklmnpqrstuvwxyz
  377. Goto 43 Ee
  378. Goto 45 Oo
  379.  
  380.  
  381. State 43
  382. Goto 15 0123456789ABCDEGHIJKLMNOPQRSTUVWXYZ_abcdeghijklmnopqrstuvwxyz
  383. Goto 44 Ff
  384.  
  385.  
  386. State 44
  387. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  388.  
  389.  
  390. State 45
  391. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  392.  
  393.  
  394. State 46
  395. Goto 15 0123456789ABCDEFGHIJKMNOPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz
  396. Goto 47 Ll
  397.  
  398.  
  399. State 47
  400. Goto 15 0123456789ABCDEFGHIJKLMNOPQRTUVWXYZ_abcdefghijklmnopqrtuvwxyz
  401. Goto 48 Ss
  402.  
  403.  
  404. State 48
  405. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  406. Goto 49 Ee
  407.  
  408.  
  409. State 49
  410. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  411.  
  412.  
  413. State 50
  414. Goto 15 0123456789BCDEFGHIJKLMNPQRSTUVWXYZ_bcdefghijklmnpqrstuvwxyz
  415. Goto 51 Aa
  416. Goto 55 Oo
  417.  
  418.  
  419. State 51
  420. Goto 15 0123456789ABCDEFGHIJKMNOPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz
  421. Goto 52 Ll
  422.  
  423.  
  424. State 52
  425. Goto 15 0123456789ABCDEFGHIJKLMNOPQRTUVWXYZ_abcdefghijklmnopqrtuvwxyz
  426. Goto 53 Ss
  427.  
  428.  
  429. State 53
  430. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  431. Goto 54 Ee
  432.  
  433.  
  434. State 54
  435. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  436.  
  437.  
  438. State 55
  439. Goto 15 0123456789ABCDEFGHIJKLMNOPQSTUVWXYZ_abcdefghijklmnopqstuvwxyz
  440. Goto 56 Rr
  441.  
  442.  
  443. State 56
  444. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  445.  
  446.  
  447. State 57
  448. Goto 15 0123456789ABCDEFGHIJKLMNPQRSTUVWXYZ_abcdefghijklmnpqrstuvwxyz
  449. Goto 58 Oo
  450.  
  451.  
  452. State 58
  453. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVXYZ_abcdefghijklmnopqrstuvxyz
  454. Goto 59 Ww
  455.  
  456.  
  457. State 59
  458. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  459.  
  460.  
  461. State 60
  462. Goto 15 0123456789ABCDEGHIJKLMNOPQRTUVWXYZ_abcdeghijklmnopqrtuvwxyz
  463. Goto 61 Ff
  464. Goto 62 Ss
  465.  
  466.  
  467. State 61
  468. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  469.  
  470.  
  471. State 62
  472. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  473.  
  474.  
  475. State 63
  476. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  477. Goto 64 Ee
  478.  
  479.  
  480. State 64
  481. Goto 15 0123456789BCDEFGHIJKLMNOPQRSUVWXYZ_bcdefghijklmnopqrsuvwxyz
  482. Goto 65 Aa
  483. Goto 67 Tt
  484.  
  485.  
  486. State 65
  487. Goto 15 0123456789ABCEFGHIJKLMNOPQRSTUVWXYZ_abcefghijklmnopqrstuvwxyz
  488. Goto 66 Dd
  489.  
  490.  
  491. State 66
  492. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  493.  
  494.  
  495. State 67
  496. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTVWXYZ_abcdefghijklmnopqrstvwxyz
  497. Goto 68 Uu
  498.  
  499.  
  500. State 68
  501. Goto 15 0123456789ABCDEFGHIJKLMNOPQSTUVWXYZ_abcdefghijklmnopqstuvwxyz
  502. Goto 69 Rr
  503.  
  504.  
  505. State 69
  506. Goto 15 0123456789ABCDEFGHIJKLMOPQRSTUVWXYZ_abcdefghijklmopqrstuvwxyz
  507. Goto 70 Nn
  508.  
  509.  
  510. State 70
  511. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  512.  
  513.  
  514. State 71
  515. Goto 15 0123456789ABCDEFGHIJKLMNOPQSTUVWXYZ_abcdefghijklmnopqstuvwxyz
  516. Goto 72 Rr
  517.  
  518.  
  519. State 72
  520. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTVWXYZ_abcdefghijklmnopqrstvwxyz
  521. Goto 73 Uu
  522.  
  523.  
  524. State 73
  525. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  526. Goto 74 Ee
  527.  
  528.  
  529. State 74
  530. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  531.  
  532.  
  533. State 75
  534. Goto 15 0123456789ABCDEFGIJKLMNOPQSTUVWXYZ_abcdefgijklmnopqstuvwxyz
  535. Goto 76 Hh
  536. Goto 88 Rr
  537.  
  538.  
  539. State 76
  540. Goto 15 0123456789BCDFGHJKLMNPQRSTUVWXZ_bcdfghjklmnpqrstuvwxz
  541. Goto 77 Aa
  542. Goto 79 Ee
  543. Goto 83 Ii
  544. Goto 86 Oo
  545. Goto 87 Yy
  546.  
  547.  
  548. State 77
  549. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSUVWXYZ_abcdefghijklmnopqrsuvwxyz
  550. Goto 78 Tt
  551.  
  552.  
  553. State 78
  554. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  555.  
  556.  
  557. State 79
  558. Goto 15 0123456789ABCDEFGHIJKLMOPQSTUVWXYZ_abcdefghijklmopqstuvwxyz
  559. Goto 80 Nn
  560. Goto 81 Rr
  561.  
  562.  
  563. State 80
  564. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  565.  
  566.  
  567. State 81
  568. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  569. Goto 82 Ee
  570.  
  571.  
  572. State 82
  573. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  574.  
  575.  
  576. State 83
  577. Goto 15 0123456789ABCDEFGHIJKMNOPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz
  578. Goto 84 Ll
  579.  
  580.  
  581. State 84
  582. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  583. Goto 85 Ee
  584.  
  585.  
  586. State 85
  587. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  588.  
  589.  
  590. State 86
  591. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  592.  
  593.  
  594. State 87
  595. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  596.  
  597.  
  598. State 88
  599. Goto 15 0123456789ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghjklmnopqrstuvwxyz
  600. Goto 89 Ii
  601.  
  602.  
  603. State 89
  604. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSUVWXYZ_abcdefghijklmnopqrsuvwxyz
  605. Goto 90 Tt
  606.  
  607.  
  608. State 90
  609. Goto 15 0123456789ABCDFGHIJKLMNOPQRSTUVWXYZ_abcdfghijklmnopqrstuvwxyz
  610. Goto 91 Ee
  611.  
  612.  
  613. State 91
  614. Goto 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
  615.  
  616.  
  617.  
  618.  
  619. ========================================
  620. LALR States
  621. ========================================
  622.  
  623.  
  624.  
  625. ========================================
  626. System Log
  627. ========================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement