[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Which lexer do people use?
From: |
uxio prego |
Subject: |
Re: Which lexer do people use? |
Date: |
Mon, 6 Jul 2020 17:03:23 +0200 |
This is elegant to me. I think it can be put to work, but am not sure.
for_construct :
TOKEN_FOR optional_whitespace
identifier TOKEN_EQ number optional_whitespace
TOKEN_TO optional_whitespace
number
{
/* nodes with values at indexes $3, $5, $9 */
}
> On 6 Jul 2020, at 14:00, Maury Markowitz <maury.markowitz@gmail.com> wrote:
>
>> On Jul 4, 2020, at 6:46 AM, Christian Schoenebeck
>> <schoenebeck@crudebyte.com> wrote:
>> The only thing that people are missing once in a while on scanner side is
>> unicode support
>
> I am missing the capability to support grammars with optional spaces between
> elements. In BASIC:
>
> FORI=1TO5
>
> is equivalent to:
>
> FOR I=1 TO 5
>
> I have yet to see an elegant way to model this in Flex. This topic comes up
> time to time here, so I don't think Unicode is the "only" thing.
- Re: Parsing a language with optional spaces, (continued)
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/12
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/13
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/14
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/14
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/18
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/14
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/18
- Re: Parsing a language with optional spaces, Christian Schoenebeck, 2020/07/20
- Re: Parsing a language with optional spaces, Akim Demaille, 2020/07/26
- Re: Parsing a language with optional spaces, John P. Hartmann, 2020/07/26
- Re: Which lexer do people use?,
uxio prego <=
- Re: Which lexer do people use?, Akim Demaille, 2020/07/06
Re: Which lexer do people use?, Derek Clegg, 2020/07/04
Re: Which lexer do people use?, Hans Ã…berg, 2020/07/04
Re: Which lexer do people use?, Adrian Vogelsgesang, 2020/07/04