Streaming parsers in D a novel design

Walter Bright newshound2 at digitalmars.com
Wed Apr 19 04:47:54 UTC 2023


On 4/18/2023 7:24 AM, H. S. Teoh wrote:
> In practice, the input would be an input range consumed by the parser
> which returns an input range of tokens.  IOW the parser is a filter that
> transforms an input range of characters into a range of tokens.

The lexer produces a stream of tokens, not the parser. The output of the parser 
is an AST.



More information about the Digitalmars-d mailing list