Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JS backend #24

Open
5 of 9 tasks
flyx opened this issue Jul 15, 2016 · 2 comments
Open
5 of 9 tasks

Support JS backend #24

flyx opened this issue Jul 15, 2016 · 2 comments

Comments

@flyx
Copy link
Owner

flyx commented Jul 15, 2016

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
@flyx
Copy link
Owner Author

flyx commented Aug 21, 2016

Blocked by nim-lang/Nim#4635

has been fixed

@flyx
Copy link
Owner Author

flyx commented Sep 19, 2016

Blocked by nim-lang/Nim#4802

workaround in place. work on this continues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant