Guest User

Untitled

a guest
Apr 13th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.24 KB | None | 0 0
  1. console.log(tmp.tok);
  2. console.log('~~~~~~~~~');
  3. this.tokens.push(tmp.tok);
  4. console.log(this.tokens);
  5. console.log('=========');
  6.  
  7.  
  8. ... and the output:
  9.  
  10. { type: 0, match: 'int', val: null, print: [Function] }
  11. ~~~~~~~~~
  12. [ { type: 0, match: 'int', val: null, print: [Function] } ]
  13. =========
  14. { type: 9, match: ' ', val: null, print: [Function] }
  15. ~~~~~~~~~
  16. [ { type: 9, match: ' ', val: null, print: [Function] },
  17. { type: 9, match: ' ', val: null, print: [Function] } ]
  18. =========
  19. { type: 0, match: 'main', val: null, print: [Function] }
  20. ~~~~~~~~~
  21. [ { type: 0, match: 'main', val: null, print: [Function] },
  22. { type: 0, match: 'main', val: null, print: [Function] },
  23. { type: 0, match: 'main', val: null, print: [Function] } ]
  24. =========
  25. { type: 48, match: '(', val: null, print: [Function] }
  26. ~~~~~~~~~
  27. [ { type: 48, match: '(', val: null, print: [Function] },
  28. { type: 48, match: '(', val: null, print: [Function] },
  29. { type: 48, match: '(', val: null, print: [Function] },
  30. { type: 48, match: '(', val: null, print: [Function] } ]
  31. =========
  32. { type: 49, match: ')', val: null, print: [Function] }
  33. ~~~~~~~~~
  34. [ { type: 49, match: ')', val: null, print: [Function] },
  35. { type: 49, match: ')', val: null, print: [Function] },
  36. { type: 49, match: ')', val: null, print: [Function] },
  37. { type: 49, match: ')', val: null, print: [Function] },
  38. { type: 49, match: ')', val: null, print: [Function] } ]
  39. =========
  40. { type: 45, match: ':', val: null, print: [Function] }
  41. ~~~~~~~~~
  42. [ { type: 45, match: ':', val: null, print: [Function] },
  43. { type: 45, match: ':', val: null, print: [Function] },
  44. { type: 45, match: ':', val: null, print: [Function] },
  45. { type: 45, match: ':', val: null, print: [Function] },
  46. { type: 45, match: ':', val: null, print: [Function] },
  47. { type: 45, match: ':', val: null, print: [Function] } ]
  48. =========
  49. { type: 56, match: '\n', val: null, print: [Function] }
  50. ~~~~~~~~~
  51. [ { type: 56, match: '\n', val: null, print: [Function] },
  52. { type: 56, match: '\n', val: null, print: [Function] },
  53. { type: 56, match: '\n', val: null, print: [Function] },
  54. { type: 56, match: '\n', val: null, print: [Function] },
  55. { type: 56, match: '\n', val: null, print: [Function] },
  56. { type: 56, match: '\n', val: null, print: [Function] },
  57. { type: 56, match: '\n', val: null, print: [Function] } ]
  58. =========
  59. { type: 9, match: ' ', val: null, print: [Function] }
  60. ~~~~~~~~~
  61. [ { type: 9, match: ' ', val: null, print: [Function] },
  62. { type: 9, match: ' ', val: null, print: [Function] },
  63. { type: 9, match: ' ', val: null, print: [Function] },
  64. { type: 9, match: ' ', val: null, print: [Function] },
  65. { type: 9, match: ' ', val: null, print: [Function] },
  66. { type: 9, match: ' ', val: null, print: [Function] },
  67. { type: 9, match: ' ', val: null, print: [Function] },
  68. { type: 9, match: ' ', val: null, print: [Function] } ]
  69. =========
  70. { type: 0, match: 'return', val: null, print: [Function] }
  71. ~~~~~~~~~
  72. [ { type: 0, match: 'return', val: null, print: [Function] },
  73. { type: 0, match: 'return', val: null, print: [Function] },
  74. { type: 0, match: 'return', val: null, print: [Function] },
  75. { type: 0, match: 'return', val: null, print: [Function] },
  76. { type: 0, match: 'return', val: null, print: [Function] },
  77. { type: 0, match: 'return', val: null, print: [Function] },
  78. { type: 0, match: 'return', val: null, print: [Function] },
  79. { type: 0, match: 'return', val: null, print: [Function] },
  80. { type: 0, match: 'return', val: null, print: [Function] } ]
  81. =========
  82. { type: 9, match: ' ', val: null, print: [Function] }
  83. ~~~~~~~~~
  84. [ { type: 9, match: ' ', val: null, print: [Function] },
  85. { type: 9, match: ' ', val: null, print: [Function] },
  86. { type: 9, match: ' ', val: null, print: [Function] },
  87. { type: 9, match: ' ', val: null, print: [Function] },
  88. { type: 9, match: ' ', val: null, print: [Function] },
  89. { type: 9, match: ' ', val: null, print: [Function] },
  90. { type: 9, match: ' ', val: null, print: [Function] },
  91. { type: 9, match: ' ', val: null, print: [Function] },
  92. { type: 9, match: ' ', val: null, print: [Function] },
  93. { type: 9, match: ' ', val: null, print: [Function] } ]
  94. =========
  95. { type: 4, match: '2', val: null, print: [Function] }
  96. ~~~~~~~~~
  97. [ { type: 4, match: '2', val: null, print: [Function] },
  98. { type: 4, match: '2', val: null, print: [Function] },
  99. { type: 4, match: '2', val: null, print: [Function] },
  100. { type: 4, match: '2', val: null, print: [Function] },
  101. { type: 4, match: '2', val: null, print: [Function] },
  102. { type: 4, match: '2', val: null, print: [Function] },
  103. { type: 4, match: '2', val: null, print: [Function] },
  104. { type: 4, match: '2', val: null, print: [Function] },
  105. { type: 4, match: '2', val: null, print: [Function] },
  106. { type: 4, match: '2', val: null, print: [Function] },
  107. { type: 4, match: '2', val: null, print: [Function] } ]
  108. =========
  109. { type: 9, match: ' ', val: null, print: [Function] }
  110. ~~~~~~~~~
  111. [ { type: 9, match: ' ', val: null, print: [Function] },
  112. { type: 9, match: ' ', val: null, print: [Function] },
  113. { type: 9, match: ' ', val: null, print: [Function] },
  114. { type: 9, match: ' ', val: null, print: [Function] },
  115. { type: 9, match: ' ', val: null, print: [Function] },
  116. { type: 9, match: ' ', val: null, print: [Function] },
  117. { type: 9, match: ' ', val: null, print: [Function] },
  118. { type: 9, match: ' ', val: null, print: [Function] },
  119. { type: 9, match: ' ', val: null, print: [Function] },
  120. { type: 9, match: ' ', val: null, print: [Function] },
  121. { type: 9, match: ' ', val: null, print: [Function] },
  122. { type: 9, match: ' ', val: null, print: [Function] } ]
  123. =========
  124. { type: 30, match: '+', val: null, print: [Function] }
  125. ~~~~~~~~~
  126. [ { type: 30, match: '+', val: null, print: [Function] },
  127. { type: 30, match: '+', val: null, print: [Function] },
  128. { type: 30, match: '+', val: null, print: [Function] },
  129. { type: 30, match: '+', val: null, print: [Function] },
  130. { type: 30, match: '+', val: null, print: [Function] },
  131. { type: 30, match: '+', val: null, print: [Function] },
  132. { type: 30, match: '+', val: null, print: [Function] },
  133. { type: 30, match: '+', val: null, print: [Function] },
  134. { type: 30, match: '+', val: null, print: [Function] },
  135. { type: 30, match: '+', val: null, print: [Function] },
  136. { type: 30, match: '+', val: null, print: [Function] },
  137. { type: 30, match: '+', val: null, print: [Function] },
  138. { type: 30, match: '+', val: null, print: [Function] } ]
  139. =========
  140. { type: 9, match: ' ', val: null, print: [Function] }
  141. ~~~~~~~~~
  142. [ { type: 9, match: ' ', val: null, print: [Function] },
  143. { type: 9, match: ' ', val: null, print: [Function] },
  144. { type: 9, match: ' ', val: null, print: [Function] },
  145. { type: 9, match: ' ', val: null, print: [Function] },
  146. { type: 9, match: ' ', val: null, print: [Function] },
  147. { type: 9, match: ' ', val: null, print: [Function] },
  148. { type: 9, match: ' ', val: null, print: [Function] },
  149. { type: 9, match: ' ', val: null, print: [Function] },
  150. { type: 9, match: ' ', val: null, print: [Function] },
  151. { type: 9, match: ' ', val: null, print: [Function] },
  152. { type: 9, match: ' ', val: null, print: [Function] },
  153. { type: 9, match: ' ', val: null, print: [Function] },
  154. { type: 9, match: ' ', val: null, print: [Function] },
  155. { type: 9, match: ' ', val: null, print: [Function] } ]
  156. =========
  157. { type: 6, match: '0x2', val: null, print: [Function] }
  158. ~~~~~~~~~
  159. [ { type: 6, match: '0x2', val: null, print: [Function] },
  160. { type: 6, match: '0x2', val: null, print: [Function] },
  161. { type: 6, match: '0x2', val: null, print: [Function] },
  162. { type: 6, match: '0x2', val: null, print: [Function] },
  163. { type: 6, match: '0x2', val: null, print: [Function] },
  164. { type: 6, match: '0x2', val: null, print: [Function] },
  165. { type: 6, match: '0x2', val: null, print: [Function] },
  166. { type: 6, match: '0x2', val: null, print: [Function] },
  167. { type: 6, match: '0x2', val: null, print: [Function] },
  168. { type: 6, match: '0x2', val: null, print: [Function] },
  169. { type: 6, match: '0x2', val: null, print: [Function] },
  170. { type: 6, match: '0x2', val: null, print: [Function] },
  171. { type: 6, match: '0x2', val: null, print: [Function] },
  172. { type: 6, match: '0x2', val: null, print: [Function] },
  173. { type: 6, match: '0x2', val: null, print: [Function] } ]
  174. =========
  175. { type: 56, match: '\n', val: null, print: [Function] }
  176. ~~~~~~~~~
  177. [ { type: 56, match: '\n', val: null, print: [Function] },
  178. { type: 56, match: '\n', val: null, print: [Function] },
  179. { type: 56, match: '\n', val: null, print: [Function] },
  180. { type: 56, match: '\n', val: null, print: [Function] },
  181. { type: 56, match: '\n', val: null, print: [Function] },
  182. { type: 56, match: '\n', val: null, print: [Function] },
  183. { type: 56, match: '\n', val: null, print: [Function] },
  184. { type: 56, match: '\n', val: null, print: [Function] },
  185. { type: 56, match: '\n', val: null, print: [Function] },
  186. { type: 56, match: '\n', val: null, print: [Function] },
  187. { type: 56, match: '\n', val: null, print: [Function] },
  188. { type: 56, match: '\n', val: null, print: [Function] },
  189. { type: 56, match: '\n', val: null, print: [Function] },
  190. { type: 56, match: '\n', val: null, print: [Function] },
  191. { type: 56, match: '\n', val: null, print: [Function] },
  192. { type: 56, match: '\n', val: null, print: [Function] } ]
  193. =========
  194. [ { type: 56, match: '\n', val: null, print: [Function] },
  195. { type: 56, match: '\n', val: null, print: [Function] },
  196. { type: 56, match: '\n', val: null, print: [Function] },
  197. { type: 56, match: '\n', val: null, print: [Function] },
  198. { type: 56, match: '\n', val: null, print: [Function] },
  199. { type: 56, match: '\n', val: null, print: [Function] },
  200. { type: 56, match: '\n', val: null, print: [Function] },
  201. { type: 56, match: '\n', val: null, print: [Function] },
  202. { type: 56, match: '\n', val: null, print: [Function] },
  203. { type: 56, match: '\n', val: null, print: [Function] },
  204. { type: 56, match: '\n', val: null, print: [Function] },
  205. { type: 56, match: '\n', val: null, print: [Function] },
  206. { type: 56, match: '\n', val: null, print: [Function] },
  207. { type: 56, match: '\n', val: null, print: [Function] },
  208. { type: 56, match: '\n', val: null, print: [Function] },
  209. { type: 56, match: '\n', val: null, print: [Function] } ]
Advertisement
Add Comment
Please, Sign In to add comment