Re: [code] Quick LPEG question...

From: Pedro Andres Aranda Gutierrez <paaguti.att.gmail.com>
Date: Tue, 21 Mar 2017 17:56:36 +0100

Hmmm... interesting caveat ;-) It was what suspected.

Thanks for the answer... I'll leave my YANG mode as it is now and use pyang
to see look for errors :-)

Best, /PA

On 21 March 2017 at 02:44, Mitchell <m.att.foicica.com> wrote:

> Hi Pedro,
>
> On Mon, 20 Mar 2017, Pedro Andres Aranda Gutierrez wrote:
>
> Hi,
>>
>> I'm working on a lexer for YANG files, which basically follow a simple
>> grammar:
>>
>> simple := keyword identifier value ';'
>>
>> complex := keyword identifier '{' (complex|simple)+ '}'
>>
>> With a couple of rules on how identifiers and values are.
>>
>> The rest would be errors...
>> Is this possible with LPeg in Textadept?
>>
>
> Yes, this is certainly possible, but you may run into trouble if those
> constructs span multiple lines. (For performance reasons, as you type
> Textadept will start lexing at the start of the current line.)
>
> Cheers,
> Mitchell
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>
>

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellet zu werden
Georg Kreisler
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 21 Mar 2017 - 12:56:36 EDT

This archive was generated by hypermail 2.2.0 : Wed 22 Mar 2017 - 06:41:57 EDT