Lexers

Discussion Forums discussion Lexers

This topic contains 0 voices and has 6 replies.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
March 3, 2006 at 2:10 pm #38

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!!!

March 5, 2006 at 7:10 pm #14895

simon
Key Master

What language are you looking to add support for?

March 5, 2006 at 8:36 pm #14896

Dariusc123456
Member

I think you should use XML

March 6, 2006 at 12:18 pm #14897

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!

March 6, 2006 at 2:16 pm #14898

marin
Member

I’ve read that Scintilla can help me, but I don’t know how!

Did you hear about it?

Regards!

March 7, 2006 at 9:39 pm #14899

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.

March 8, 2006 at 5:28 pm #14900

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

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.