Re: Using bison without Flex

2015-04-23 Thread John Levine
In article you write: > >> On 23 Apr 2015, at 16:34, brahim sahbi wrote: > >> can we use bison without flex by describing grammatical >> rules for tokens(like number <- list_of_digits). > >A lexer like generated by Flex scans forward to find the longest match which >may require significant looka

Re: Using bison without Flex

2015-04-23 Thread Hans Ã…berg
> On 23 Apr 2015, at 16:34, brahim sahbi wrote: > can we use bison without flex by describing grammatical > rules for tokens(like number <- list_of_digits). A lexer like generated by Flex scans forward to find the longest match which may require significant lookahead. A Bison generated parser

Re: Using bison without Flex

2015-04-23 Thread Hans Aberg
> On 23 Apr 2015, at 16:34, brahim sahbi wrote: > can we use bison without flex by describing grammatical > rules for tokens(like number <- list_of_digits). A lexer like generated by Flex scans forward to find the longest match which may require significant lookahead. A Bison generated parser

Using bison without Flex

2015-04-23 Thread brahim sahbi
Hello, I am new to bison. While I was reading the documentation, I asked myself this question: can we use bison without flex by describing grammatical rules for tokens(like number <- list_of_digits). Can it recognize a language's keywords and prohibit an identifier to be a keyword? Thanks Brahi