Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.02 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.02 KB

Simple Java Code Editor - Final Version is on Master Branch

PLEASE USE LATEST JDK BEFORE EXECUTING THE PROGRAM TO AVOID ISSUE

KeyWord Count

  • Keyword count uses the Java Abstract Syntax Tree, thus the keyword count is updated only when there are no compile errors.

  • Examples of valid keywords

for(int i = 0; i < 10; i++) {
}

for(;;)
  doSomething();
  
for( Object obj : arr ){
}

do{
}while(true);

while(true){}

if(true){}

// this will count as 2 keywords
if(true)
  i = 0;
else
  i = 1;
 
  • Examples of invalid keywords
String s = "if";

// while 
  • Based on the project description, the following code will count as 6 keywords, because there are 3 ifs and 3 elses.
if(...){}
else if(...){}
else if(...){}
else{}

Compiling

  • Compile All will compile all project files. Similar to visual studio, if a file is not part of a project it will not be able to compile.
  • Compiling a file will auto-save that file. Compiling Main and compile all will auto-save the project.