Advertisement
Guest User

Untitled

a guest
Feb 10th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.03 KB | None | 0 0
  1. "C:\Program Files\Java\jdk1.8.0_101\bin\java" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_101\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\rt.jar;C:\Users\Emeric G\IdeaProjects\CCalc0\out\production\TestCCalc;C:\Users\Emeric G\IdeaProjects\CCalc0\out\production\CCalc0;C:\Users\Emeric G\Documents\Cours\Mines\jars\antlr-runtime-4.6.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.2\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain test.TestGreen
  2. ==== test/green1.calc: number, attendu : 1234567890
  3. (expression 1234567890)
  4. writing C code to test/green1.c
  5. SUCCESS
  6. ==== test/green2.calc: addition, attendu : 2
  7. (expression (expression 0) + (expression 2))
  8. writing C code to test/green2.c
  9. SUCCESS
  10. ==== test/green3.calc: arithmetic expression with priority, attendu : 7
  11. (expression (expression 1) + (expression (expression 2) * (expression 3)))
  12. writing C code to test/green3.c
  13. SUCCESS
  14. ==== test/green4.calc: unary minus, attendu : -4
  15. (expression - (expression 4))
  16. writing C code to test/green4.c
  17. SUCCESS
  18. ==== test/green5.calc: boolean, attendu : 0
  19. (expression false)
  20. writing C code to test/green5.c
  21. ==== test/green6.calc: boolean expression, attendu : 1
  22. C code does not compile
  23. (expression (expression ! (expression false)) && (expression true))
  24. writing C code to test/green6.c
  25. ==== Unexpected exception
  26. java.util.NoSuchElementException: No line found
  27. at java.util.Scanner.nextLine(Scanner.java:1540)
  28. at test.Test.display(Test.java:134)
  29. at test.Test.test(Test.java:71)
  30. at test.TestGreen.main(TestGreen.java:16)
  31. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  32. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  33. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  34. at java.lang.reflect.Method.invoke(Method.java:498)
  35. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  36. ==== test/green7.calc: boolean expression with priority, attendu : 1
  37. (expression (expression (expression true) || (expression true)) && (expression false))
  38. writing C code to test/green7.c
  39. ==== test/green8.calc: boolean expression with explicit priority, attendu : 0
  40. ==== Unexpected exception
  41. java.util.NoSuchElementException: No line found
  42. at java.util.Scanner.nextLine(Scanner.java:1540)
  43. at test.Test.display(Test.java:134)
  44. at test.Test.test(Test.java:71)
  45. at test.TestGreen.main(TestGreen.java:17)
  46. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  47. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  48. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  49. at java.lang.reflect.Method.invoke(Method.java:498)
  50. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  51. (expression (expression ( (expression (expression true) || (expression true)) )) && (expression false))
  52. writing C code to test/green8.c
  53. ==== test/green9.calc: unary not, attendu : 1
  54. (expression ! (expression false))
  55. writing C code to test/green9.c
  56. ==== Unexpected exception
  57. java.util.NoSuchElementException: No line found
  58. at java.util.Scanner.nextLine(Scanner.java:1540)
  59. at test.Test.display(Test.java:134)
  60. at test.Test.test(Test.java:71)
  61. at test.TestGreen.main(TestGreen.java:18)
  62. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  63. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  64. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  65. at java.lang.reflect.Method.invoke(Method.java:498)
  66. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  67. ==== test/green10.calc: conditional, attendu : 12
  68. ==== Unexpected exception
  69. (expression (expression true) ? (expression 12) : (expression 21))
  70. java.util.NoSuchElementException: No line found
  71. at java.util.Scanner.nextLine(Scanner.java:1540)
  72. at test.Test.display(Test.java:134)
  73. at test.Test.test(Test.java:71)
  74. at test.TestGreen.main(TestGreen.java:19)
  75. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  76. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  77. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  78. at java.lang.reflect.Method.invoke(Method.java:498)
  79. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  80. writing C code to test/green10.c
  81. ==== Unexpected exception
  82. java.util.NoSuchElementException: No line found
  83. at java.util.Scanner.nextLine(Scanner.java:1540)
  84. at test.Test.display(Test.java:134)
  85. at test.Test.test(Test.java:71)
  86. at test.TestGreen.main(TestGreen.java:20)
  87. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  88. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  89. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  90. at java.lang.reflect.Method.invoke(Method.java:498)
  91. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  92. ==== test/green11.calc: conditional, attendu : 21
  93. (expression (expression (expression 12) == (expression 21)) ? (expression 12) : (expression 21))
  94. writing C code to test/green11.c
  95. SUCCESS
  96. ==== test/green12.calc: comparison, attendu : 1
  97. (expression (expression 12) < (expression 21))
  98. writing C code to test/green12.c
  99. SUCCESS
  100. ==== test/green13.calc: nested conditionals, attendu : 2
  101. (expression (expression (expression 21) > (expression 12)) ? (expression (expression (expression 12) == (expression 21)) ? (expression 1) : (expression 2)) : (expression 3))
  102. writing C code to test/green13.c
  103. SUCCESS
  104. ==== test/green14.calc: unequality, attendu : 1
  105. (expression (expression 1) != (expression 0))
  106. writing C code to test/green14.c
  107. SUCCESS
  108. ==== test/green15.calc: equality, attendu : 0
  109. (expression (expression true) == (expression false))
  110. writing C code to test/green15.c
  111. ==== test/green16.calc: equality, attendu : error
  112. ==== Unexpected exception
  113. (expression (expression 1) == (expression true))
  114. java.util.NoSuchElementException: No line found
  115. at java.util.Scanner.nextLine(Scanner.java:1540)
  116. at test.Test.display(Test.java:134)
  117. at test.Test.test(Test.java:71)
  118. at test.TestGreen.main(TestGreen.java:25)
  119. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  120. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  121. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  122. at java.lang.reflect.Method.invoke(Method.java:498)
  123. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  124. ==== Exception in compiler
  125. ast.SemanticError: Semantic error
  126. at ccalc.CCalc.main(CCalc.java:55)
  127. at test.Test.test(Test.java:54)
  128. at test.TestGreen.main(TestGreen.java:26)
  129. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  130. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  131. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  132. at java.lang.reflect.Method.invoke(Method.java:498)
  133. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  134. ==== test/green17.calc: nested divisisons, attendu : 1
  135. (expression (expression (expression 8) / (expression 4)) / (expression 2))
  136. writing C code to test/green17.c
  137. SUCCESS
  138. ==== test/green18.calc: minus mix, attendu : 2
  139. (expression (expression - (expression 2)) - (expression ( (expression - (expression 4)) )))
  140. writing C code to test/green18.c
  141. SUCCESS
  142. ==== test/green19.calc: parenthesized number, attendu : 2
  143. (expression ( (expression 2) ))
  144. writing C code to test/green19.c
  145. ==== Exception in compiler
  146. ast.SemanticError: Semantic error
  147. at ccalc.CCalc.main(CCalc.java:55)
  148. at test.Test.test(Test.java:54)
  149. at test.TestGreen.main(TestGreen.java:30)
  150. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  151. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  152. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  153. at java.lang.reflect.Method.invoke(Method.java:498)
  154. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  155. line 1:0 token recognition error at: 'O'
  156. line 3:0 no viable alternative at input '<EOF>'
  157. ==== Exception in compiler
  158. parser.SyntaxError
  159. at ccalc.CCalc.main(CCalc.java:59)
  160. at test.Test.test(Test.java:54)
  161. at test.TestGreen.main(TestGreen.java:31)
  162. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  163. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  164. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  165. at java.lang.reflect.Method.invoke(Method.java:498)
  166. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  167. line 1:1 extraneous input '1' expecting {<EOF>, '?', '-', '+', '*', '/', COMPAR, EQUALITY, BOOLOP}
  168. ==== Exception in compiler
  169. parser.SyntaxError
  170. at ccalc.CCalc.main(CCalc.java:59)
  171. at test.Test.test(Test.java:54)
  172. at test.TestGreen.main(TestGreen.java:32)
  173. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  174. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  175. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  176. at java.lang.reflect.Method.invoke(Method.java:498)
  177. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  178. SUCCESS
  179. ==== test/green20.calc: erroneous expression, attendu : error
  180. (expression (expression true) + (expression false))
  181. ==== test/green21.calc: garbage, attendu : error
  182. expression
  183. ==== test/green22.calc: garbage, attendu : error
  184. (expression 0 1)
  185. ==== test/green23.calc: erroneous conditional, attendu : error
  186. (expression true : 1 ? 0)
  187. line 1:5 mismatched input ':' expecting {<EOF>, '?', '-', '+', '*', '/', COMPAR, EQUALITY, BOOLOP}
  188. ==== test/green24.calc: erroneous conditional/garbage, attendu : error
  189. (expression (expression true) ? (expression 1) : (expression (expression 0) ? (expression 2)))
  190. ==== Exception in compiler
  191. parser.SyntaxError
  192. at ccalc.CCalc.main(CCalc.java:59)
  193. ==== test/green27.calc: erroneous number, attendu : error
  194. at test.Test.test(Test.java:54)
  195. at test.TestGreen.main(TestGreen.java:33)
  196. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  197. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  198. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  199. at java.lang.reflect.Method.invoke(Method.java:498)
  200. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  201. line 2:0 mismatched input '<EOF>' expecting ':'
  202. ==== Exception in compiler
  203. parser.SyntaxError
  204. at ccalc.CCalc.main(CCalc.java:59)
  205. at test.Test.test(Test.java:54)
  206. at test.TestGreen.main(TestGreen.java:34)
  207. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  208. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  209. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  210. at java.lang.reflect.Method.invoke(Method.java:498)
  211. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  212. (expression + 2)
  213. line 1:0 extraneous input '+' expecting {'(', LITERAL, BOOL, '-', '!'}
  214. 18 successful tests out of 25
  215. ==== Exception in compiler
  216. parser.SyntaxError
  217. at ccalc.CCalc.main(CCalc.java:59)
  218. at test.Test.test(Test.java:54)
  219. at test.TestGreen.main(TestGreen.java:37)
  220. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  221. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  222. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  223. at java.lang.reflect.Method.invoke(Method.java:498)
  224. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
  225.  
  226. Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement