Programming Language Syntax Validator
project report tiger|
Active In SP
Joined: Feb 2010
10-02-2010, 07:46 AM
Programming Language Syntax Validator.doc (Size: 41.5 KB / Downloads: 67)
Project type: System project and implimentation, tools
Project title: Programming Language Syntax Validator
The aim of this project and implimentation is to automatically fix errors that might result due to misspelled variable names used in the program. It will use the declaration as the definitive spelling, and then propagate it. It is possible that a misspelled variable is also a legitimate variable and hence the program will try to list alternatives to the user from which he can decide whether or not to make the desired change.
Primary functions to be performed:
Get the input program to be processed
Identify the variable definitions
Identify variable usage
Correct misspelled variables
The IDE (Integrated Development Environment) which are meant for fast coding in Software Engineering uses auto suggestion of codes. There are in-built code snippets in the IDE based on the type of program (e.g. java or .net) they can edit these snippets are called templates. These editors (IDE) help the programmerâ„¢s job easy by suggesting in-built code templates. But it does not suggest the wrongly typed variables. So this Variable checker â€œ tool is developed to solve this draw back in the existing editors.
Note: This tool (Variable checker tool) is developed in Java to check variables of Java programs.
Functionality of the proposed tool:
Â¢ Identify the Input program for variable checking.
Â¢ Read through the entire input program and get the list of all variables including the wrong variables.
Â¢ Look for miss-spelled variables(i.e. with look alike words with some grammar check or regular expression)
Â¢ When a miss-spelled variable matches a variable declared in the program the tool should suggest the nearly matching variable for correction.
Â¢ The user should select the suggested variable, and then the miss-spelled variable is replaced with the selected correct variable.
Â¢ If the user does not select the suggested variable then the current coded variable should be left intact.