User Tools

Site Tools


cc17:eminijava

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cc17:eminijava [2017/02/12 13:59]
hossein
cc17:eminijava [2017/02/20 17:17] (current)
hossein [BNF]
Line 9: Line 9:
   * Object oriented. It supports classes with inheritance and method overriding (but not overloading).   * Object oriented. It supports classes with inheritance and method overriding (but not overloading).
   * Imperative. All class fields and local variables are mutable. While-loop and conditional statement are the main control structure.   * Imperative. All class fields and local variables are mutable. While-loop and conditional statement are the main control structure.
-  * It supports the following types: ''​int'',​ ''​boolean'',​ ''​String'',​ ''​int'' ​array and reference types (classes).+  * It supports the following types: ''​int'',​ ''​boolean'',​ ''​String'',​ ''​int ​array''​ and reference types (classes).
   * All classes in a eMiniJava program are included in a single source file.   * All classes in a eMiniJava program are included in a single source file.
  
  
 ===== BNF ===== ===== BNF =====
-The syntax of Tool is given by the following BNF grammar:+The syntax of eMiniJava ​is given by the following BNF grammar:
  
 |  //​Program//​|::​=|//​MainClass//​ ( //​ClassDeclaration//​ )* <​EOF> ​ | |  //​Program//​|::​=|//​MainClass//​ ( //​ClassDeclaration//​ )* <​EOF> ​ |
Line 43: Line 43:
 |      |   ​|//​Identifier// ​ | |      |   ​|//​Identifier// ​ |
 |      |   ​|**this** ​ | |      |   ​|**this** ​ |
-|      |   ​|**new ​Int [** //​Expression//​ **]**  |+|      |   ​|**new ​int [** //​Expression//​ **]**  |
 |      |   ​|**new** //​Identifier//​ **( )**  | |      |   ​|**new** //​Identifier//​ **( )**  |
 |      |   ​|**!** //​Expression// ​ | |      |   ​|**!** //​Expression// ​ |
cc17/eminijava.1486925960.txt.gz ยท Last modified: 2017/02/12 13:59 by hossein