Skip to content

Support JS backend #24

@flyx

Description

@flyx

Nim's JavaScript backend is currently not supported because it doesn't support first-class iterators. Since it is unlikely that this will change in the near future, to support the backend, fastparse.nim must be refactored to not use first-class iterators.

Required changes:

  • Refactor parser to not use first class iterators
  • Refactor serialization to not use first class iterators
  • Find a way to deal with missing exception handling for JS target
  • Find a way to deal with missing StringStream for JS target (parsing)
  • Find a way to deal with missing StringStream for JS target (dumper)

What should be done to declare NimYAML fit for JS:

  • All parser tests shall be green in JS
  • The majority of serialization tests shall be green in JS, minus some that have issues depending on Nim's JS support
  • Travis should run JS tests
  • nimyaml.org testing ground shall be built in pure JS

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions