#1025 Visual Prolog lexer update

Committed
closed
5
2014-08-16
2013-10-07
No

The Visual Prolog lexer has been updated.

Both because the syntax has been extended with new string literal formats and because the lexer now expliots the Unicode features.

I have attached the lexer code. And here are the lexer states (python format):

lex VisualProlog=SCLEX_VISUALPROLOG SCE_VISUALPROLOG_
val SCE_VISUALPROLOG_DEFAULT=0
val SCE_VISUALPROLOG_KEY_MAJOR=1
val SCE_VISUALPROLOG_KEY_MINOR=2
val SCE_VISUALPROLOG_KEY_DIRECTIVE=3
val SCE_VISUALPROLOG_COMMENT_BLOCK=4
val SCE_VISUALPROLOG_COMMENT_LINE=5
val SCE_VISUALPROLOG_COMMENT_KEY=6
val SCE_VISUALPROLOG_COMMENT_KEY_ERROR=7
val SCE_VISUALPROLOG_IDENTIFIER=8
val SCE_VISUALPROLOG_VARIABLE=9
val SCE_VISUALPROLOG_ANONYMOUS=10
val SCE_VISUALPROLOG_NUMBER=11
val SCE_VISUALPROLOG_OPERATOR=12
val SCE_VISUALPROLOG_CHARACTER=13
val SCE_VISUALPROLOG_CHARACTER_TOO_MANY=14
val SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR=15
val SCE_VISUALPROLOG_STRING=16
val SCE_VISUALPROLOG_STRING_ESCAPE=17
val SCE_VISUALPROLOG_STRING_ESCAPE_ERROR=18
val SCE_VISUALPROLOG_STRING_EOL_OPEN=19
val SCE_VISUALPROLOG_STRING_VERBATIM=20
val SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL=21
val SCE_VISUALPROLOG_STRING_VERBATIM_EOL=22
1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2013-10-07

    To avoid the potential for name clashes, the new functions (is*) should be marked static or placed in the unnamed namespace.

     
  • Thomas Linder Puls

    Yes, of course (C++ is not my normal programming language to I have forgot this). I have added static to my version, should I post it again or will you do the same to the copy I sent above?

     
  • Neil Hodgson

    Neil Hodgson - 2013-10-08

    Its best you post your version so we don't diverge.

     
  • Neil Hodgson

    Neil Hodgson - 2013-10-08
    • labels: --> lexer, scintilla
    • assigned_to: Neil Hodgson
    • Group: Completed --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2013-10-15
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks