Re: Is C99 the final C? (some suggestions)

From: Paul Hsieh (qed_at_pobox.com)
Date: 12/06/03


Date: Sat, 06 Dec 2003 16:01:04 GMT

ajo@nospam.andrew.cmu.edu says...
> > > My gut feeling is that this would effectively force the compiler to
> > > maintain a dynamic parser on-the-fly while scanning through the source,
> > > which would be wildly complex.
> >
> > Yes it complexifies the parser quite a bit. I don't dispute that.
>
> Not the parser so much as the lexer. Is "a %^&%*!^ b" three tokens,
> four, five, six, seven, eight, or nine? It depends on the semantics
> of the code we've already translated.
> Note that this is *NOT*, repeat *NOT*, an idea that will ever make
> it into the C programming language, for this reason -- as expressed
> in this subthread, it would break almost *every* C-parsing tool on
> the market.

So would adding &&& and |||. Remember that my premise is that if one is
motivated to add one of those, why not add in something more general?

--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sf.net/


Relevant Pages

  • problem with C grammar
    ... I rather would like to let the parser do ... Is there any way to change the grammar such that I can use ... IDENTIFIER instead of TYPE_NAME here without having all those conflicts? ... Parsing and Term Rewriting: Semantics Driven Disambiguation, ...
    (comp.compilers)
  • Re: C99 parser ?
    ... just something which checks syntax and semantics. ... and to learn the syntax and semantics of the C99 standard. ... Sparse (semantic parser) is a project for a C/C++ parser that might be ...
    (comp.compilers)
  • Re: Universal grammar
    ... domain of mathematics. ... One might attempt to pin down this semantics using tree structures ... It is not difficult to write parser that ... logical models for the natural language semantics. ...
    (sci.lang)
  • Re: Diffusers cleared to race; Teams to appeal.
    ... explain the semantics / interpretation element which is in dispute. ...
    (rec.autos.sport.f1)
  • Re: Diffusers cleared to race; Teams to appeal.
    ... explain the semantics / interpretation element which is in dispute. ...
    (rec.autos.sport.f1)