-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add callback and event for comments (#423)
* Added tests and support for a comments callback in the N3Parser * Added support and test for emitting comments in the N3StreamParser * Added setter for enabling comments in lexer * Perf: no token check on comment when not in comment mode * Support new backward compatible function signature for parse() * keeping the {…} off for single lines * Make emitting comments from N3StreamParser optional through a constructor option (off by default) * Make comments a public var in N3Lexer * Update test/N3Parser-test.js Co-authored-by: Ruben Verborgh <[email protected]> * Adding tests to fix coverage * Updated documentation in the README.md * chore: revert prefix arg drop * chore: cleanup documentation * chore: make languaage precise --------- Co-authored-by: Jesse Wright <[email protected]> Co-authored-by: Ruben Verborgh <[email protected]>
- Loading branch information
1 parent
330dc33
commit 881d0aa
Showing
6 changed files
with
293 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.