 marin
Member
|
Hello all!
I need to create a lex file for an especific language.
I’d like to know which language I should use to create it, which kind of file I have to generate and which folder I have to put this file.
Someone can help me?
Thanks in advance!!!
|
 simon
Key Master
|
What language are you looking to add support for?
|
 Dariusc123456
Member
|
I think you should use XML
|
 marin
Member
|
“What language are you looking to add support for?”
Actually is a specific language created by the company where I work. It is called GENAP.
“I think you should use XML”
We’re right! I’m already using XML. However also I need to create a lex in order to highlight, for instance, just lowercase words.
Any idea?
Thanx!
|
 marin
Member
|
I’ve read that Scintilla can help me, but I don’t know how!
Did you hear about it?
Regards!
|
 simon
Key Master
|
Can you post an example of code in your language? It’s quite possible that the “customschemes” lexer will already be able to lex your language and you could use that with no code to write – just a bit of XML definition.
|
 marin
Member
|
Unfortunately just a XML does not work.
I’ve tried to create just a XML and to use a lexer of another language, but some specifcs details from the language make this way impossible.
Below is an example of code:
programa (central, num, acao, numero_c)
– comments are made after “–”
variable cmd_ativ, cmd_desativ, cmd_senha;
patron PL_EXECUTED
linea texto “EXECUTED”
fin_linea
fin_patron
si (acao = 1) entonces
concatenar_tira (cmd_ativ, “sucbi:snb=”, num, “;”);
si_no
concatenar_tira (cmd_desativ, “sucbe:snb=”, num, “;”);
fin_si
concatenar_tira (cmd_senha, “sukwp:snb=”, num, “;”);
fin_programa
|