Quote:
Originally Posted by CarCdr
Writing a language parser is non-trivial. I have written a couple from scratch and, more frequently, used lexical/parser tools to define a language parser to do the job.
It is not as simple as looking for keywords. If you did that, you would incorrectly highlight keywords within strings, as in:
|
And checking if there was a space bewfre and after wont be enough?
Quote:
]
You must be able to break the input into a syntactically correct stream of tokens, then parse the tokens into a semantically correct series of language constructs, such as statements and expressions.
|
I'm not really too sure I understand what you mean by stream of token, etc
Ultimately i dont see why it wouldn't be as easy as copying the current VB php pharser and modifying the keyword, so as to suit the chosen language?
If i were to pay for a hack like this, how much would it cost do you think?