Difference between revisions of "Syntax checking/SRS"

Line 12: Line 12:
 
# On mouse over, show information on error
 
# On mouse over, show information on error
 
# Information window could be clickabel to provide further error information
 
# Information window could be clickabel to provide further error information
 +
 +
= Suggestions =
 +
# To be implemented after parser and visualization components are feature complete
 +
# Suggestions based on information from parse tree
 +
# Analyzation based on soundex or other algorithm

Revision as of 07:58, 2 May 2006

Goal

Provide adequate, but non intrusive feedback to user about syntax errors.

Parser

  1. Should only parse when neccessary, using timer function or after certain input (like spaces, enter) (to be further specified )
  2. Provide errors in adequate datastructure to visualisation components (linenumber, type of error, further information)
  3. On error, parser should call event handler provided by visualization components

Visualization

  1. Provides event handler and register it to parser error-event
  2. Underline syntax errors using a (preferably wavy) red line
  3. On mouse over, show information on error
  4. Information window could be clickabel to provide further error information

Suggestions

  1. To be implemented after parser and visualization components are feature complete
  2. Suggestions based on information from parse tree
  3. Analyzation based on soundex or other algorithm