-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error Configuration for Lexer (4.1.0) (#136)
* Factored out all the magic strings in token.numeric and most of those in token.text * Removed scala.annotation.unused in favour of our XCompat one * Added Symbol error config * Added error config for escapes * Added position object with some extra (hidden) goodies * Added error configuration to names * Threaded configuration into the symbol instructions * Fixed compile error with shadowed parameter * Completed the space error configuration * Removed some redundant .hides * Exposed preliminary public api and enabled releases * Update workflows * Update the Milestone version in README post M1 * Added explain config for escape characters and missing label for escapeChar in character literals * Added some missing labels and added (now optional) explain for invalid escapes into escape itself * Added rest of escape error config, and made a couple of parts more consistent * Factored out repeated combinator construction * Version bumps * Updated satisfyUtf16 to allow for the parsing of lone high-surrogates: it's none of my business if someone actually wants to do that! * Standardised the character reading, allowed for high-surrogates, removed messageCharEscapeNonBasicMultilingualPlane * Moved filtering into the literal, helps reduce premature backtracking * Added dislodge combinator to undo entrenching * Added the spanWith combinator to position * Added cheeky typecheck to allow Entrenched and Dislodged to cancel out * Allowed for either unexpected errors, explained errors, or both with the character literals * Added error labelling to character literals (outside quotes) * Added the basis for a new future unexpected combinator, it captures a very useful pattern! * Added start and end labels to characters, and a pre-emption for illegal characters * Simplified the pre-emption interface * Updated README * Corrected terminology for preempt * Made the error message for utf16 satisfy better (yuck), and removed some redundant code from ErrorItem. Fixed codepoint width inconsistency in JumpTable, and mused on changing caret widths * Added relevant configuration to strings * Renamed CharEscape to EscapeChar for consistency * Labelling for start of numeric literals working * Added more labelling, but Generic needs to be parameterised * added error parameterisation to Generic * Bit more elaboration on how the future patterns combinators will work, the current implements will do for now * Threaded the end of number logic through, and explained break characters * Expanded the scope of end of number style messages * Added start-only userDefinedOperator, and corrected some documentation * Made new combinator final * Added the implicits to predicate, this should reduce tension when giving predicates * Added another exception to bin-compat checks * Removed sharing with generic :(, we need it unshared to vary the labels between escapes, ints, and reals * fixed typo in pleaseDontValidateConfig, Real detaches the config from signedinteger when it uses it * Added the start labels for real, and unused end labels * Finished config for real numbers * removed validation, the problematic interactions are gone now * Fixed some missing label application * Removed default, it's useless * Added graphic explain * Made some private methods final * removed the depth of a handler stack: turns out its more effective to just treat the handler stack like an extension of the call stack * Shifted labels over to LabelConfig * Removed ErrorConfig.label * Removed ExpectDesc and ExpectItem builders, LabelConfig is a good replacement, as it happens * Fixed bad use of Hidden/LabeL * Improved the type interactions of Label and Explain, allowing for overlap * converted remaining explain/labels to new system * Added the first basics of the other half of the system * Added the Vanilla side of the hierarchy * Verified errors and Preventative errors complete * message/unexpected/explain -> filter * Added package * Documentation groupings and removed case classes * Number config documented * Name config documented * Added documentation for specific symbol config * Rest of symbol configuration documented * Configured dot stuff, fixed compile error * Finished Verified error docs * Other doc complete, just text left * All the labelling text config is documented * Finished docs * Documented new predicate implicits * README bump, welcome to RC1
- Loading branch information
Showing
70 changed files
with
2,440 additions
and
678 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
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.