Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parse to complete syntax tree #1

@gipsond

Description

@gipsond

what

Develop an LC-3 string (&str) parser that retains and structures all input (as slices) to allow for syntax-based highlighting and detailed error reporting.

See https://hackmd.io/VHEHGXv-RwG8cLQySyaMRg for a rough description of the IRs listed below.

steps

  • Lexer
  • IR 1 Parser (SimpleLines)
  • IR 2 Parser (Lines)
  • IR 3 Parser (Unvalidated Objects)
  • IR 4 Parser (CST [Validated Objects])
  • Testing

where

branch: master

open questions

Can we restructure the CST to make it more useful for error messages or future LSP work?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions