Skip to content

"The parser" #13

Open
Open
@nikomatsakis

Description

@nikomatsakis

It'd be worth covering

  • where the lexer is
  • how the parser works
  • conventions around error recovery
  • - What is this eat function?
    • It consumes a token, and queues up the next token as lookahead
  • How do you handle identifiers and keywords?
  • What about constructing spans?
  • What is this crazy pretty printer?
    • It dumps out the AST in human readable form.
    • We have tests that will parse each file in run-pass, pretty print it, and then test that the resulting pretty printed file type checks, so you have to implement this.
  • Something like this: "The parser" #13 (comment) and "The parser" #13 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ASTArea: abstract syntax treeA-lexingArea: lexical analysisA-parserArea: parsingC-enhancementCategory: enhancementE-hardDifficulty: might require advanced knowledgeE-help-wantedCall for participation: extra help is wantedT-compilerRelevant to compiler team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions