-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add CST tools #252
Add CST tools #252
Commits on Apr 3, 2021
-
feat!: Turn the lexer into a generator
BREAKING CHANGE: The `push` argument of `new Lexer()` is dropped, and instead its `lex()` method is now a Generator<string> that allows for the lexemes to be iterated.
Configuration menu - View commit details
-
Copy full SHA for 7526509 - Browse repository at this point
Copy the full SHA 7526509View commit details -
feat!: Turn the parser into a generator
BREAKING CHANGE: The `push` argument of `new Parser()` is dropped, and instead its `parse()`, `next()` and `end()` methods are now generators that allow for the parsed tokens to be iterated.
Configuration menu - View commit details
-
Copy full SHA for 7169dce - Browse repository at this point
Copy the full SHA 7169dceView commit details -
feat!: Turn the composer into a generator
Adds a convenience method `composer.compose(tokens)`. BREAKING CHANGE: The `push` argument of `new Composer()` is dropped, and instead its `next()` and `end()` methods are now generators that allow for the parsed documents to be iterated.
Configuration menu - View commit details
-
Copy full SHA for 1755d2f - Browse repository at this point
Copy the full SHA 1755d2fView commit details -
refactor!: Rename parse/tokens.ts as parse/cst.ts
BREAKING CHANGE: The public export is renamed from `tokens` to `CST`.
Configuration menu - View commit details
-
Copy full SHA for 725dbf3 - Browse repository at this point
Copy the full SHA 725dbf3View commit details -
fix(cst): For block scalars, use an empty string rather than `undefin…
…ed` to mark empty values
Configuration menu - View commit details
-
Copy full SHA for 3742130 - Browse repository at this point
Copy the full SHA 3742130View commit details -
feat(cst): Add visitor & stringifier + utilities
Adds: - `CST.isCollection(token)` - `CST.isScalar(token)` - `CST.stringify(cst)` - `CST.visit(cst, visitor)`
Configuration menu - View commit details
-
Copy full SHA for 9deb055 - Browse repository at this point
Copy the full SHA 9deb055View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f29b99 - Browse repository at this point
Copy the full SHA 3f29b99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2044c08 - Browse repository at this point
Copy the full SHA 2044c08View commit details