Skip to content

Create a generic file format parser #84

@kylecorry31

Description

@kylecorry31

A generic input stream parser should be created that replaces both the PDF and WKT parsers.

It should be able to be passed a token tree of some sort and output an object which represents it.

Things it should support

  • Blocks (ex. PDF objects, streams, arrays, parameter arrays): Start and stop indicators, potential for nesting - has content
  • Key value pairs (ex. PDF parameters): Key and associated value
  • Skipped content (ex. ability to ignore streams)

Either the parser will have this functionality, or it will be abstract and the concrete implementations will just be notified of the block / key value pairs and do its own parsing. I'm leaning toward the second one.

https://stackoverflow.com/questions/15895124/what-is-push-approach-and-pull-approach-to-parsing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions