Syntax checking/Visualisation

Revision as of 02:36, 12 May 2006 by Indermum (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Meeting of the 12.05.06, Visualsation Team

Summary of the important classes with little description of the features we plan to use:

Src\library\editor\text_window\text\tokens\common\editor_token.e

  • most important class
  • all the other tokens inherit from this Class
  • implement a boolean “correct”, who indicates if the token is syntacticly correct or not.
  • color, position and other stuff is saved here too.
  • draw_text_top_left: draws the token on the pixmap (maybe we can start here for drawing the underlines)

editor_token_text.e (stands here as example for all the tokens that inherits from editor_token)

  • inherit editor_token
  • width -> the size of the token in pixel
  • display: starts drawing the text. Implement here the boolean “correct” as argument and draw from here the underline.

Src\library\editor\text_window\editor\text_window\interface\text_panel.e

  • update lines: draws the textline


Next Steps are to implement the boolean (shouldn't be that hard), find a way to get the information from the parser group (define an API), use the information and set the boolean and in the end draw the underline.