Re: What should be check in Lexical Analyzer along with generating tokens?

"Lars Duening" <lars@bearnip.com>
25 Oct 2002 00:01:09 -0400

          From comp.compilers

Related articles
[4 earlier articles]
Re: What should be check in Lexical Analyzer along with generating t joachim_d@gmx.de (Joachim Durchholz) (2002-09-22)
Re: What should be check in Lexical Analyzer along with generating clint@0lsen.net (Clint Olsen) (2002-09-25)
Re: What should be check in Lexical Analyzer along with generati clint@0lsen.net (Clint Olsen) (2002-09-29)
Re: What should be check in Lexical Analyzer along with genera joachim_d@gmx.de (Joachim Durchholz) (2002-10-13)
Re: What should be check in Lexical Analyzer along with generating tok lex@cc.gatech.edu (Lex Spoon) (2002-10-18)
Re: What should be check in Lexical Analyzer along with generating t joachim_d@gmx.de (Joachim Durchholz) (2002-10-20)
Re: What should be check in Lexical Analyzer along with generating lars@bearnip.com (Lars Duening) (2002-10-25)
Re: What should be check in Lexical Analyzer along with generating lex@cc.gatech.edu (Lex Spoon) (2002-10-25)
| List of all articles for this month |

From: "Lars Duening" <lars@bearnip.com>
Newsgroups: comp.compilers
Date: 25 Oct 2002 00:01:09 -0400
Organization: Compilers Central
References: 02-09-087 02-09-110 02-09-121 02-09-128 02-09-141 02-09-156 02-10-010 02-10-056 02-10-095
Keywords: lex
Posted-Date: 25 Oct 2002 00:01:08 EDT

Joachim Durchholz <joachim_d@gmx.de> wrote:


> Basically, it depends on the questions what's the contents of a comment:
> is it a sequence of characters, or a sequence of tokens? That's
> something that should be found in the language definition.


Which is the crucial point. Myself, I would expect


    /* parse "this */ 10 /* and this" */


to be compiled as


    comment 'parse "this'
    number 10
    comment 'and this"'


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.