Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed space_tabs token until it sees some use.
* Corrected token type of entity rules (to TEXT). * Implemented <nowiki>, using a separate lexer state. Cool! * Added some corner-case tests for headings for the future. * Added catch-all rules to slurp up normal text. * Stopped using introspection to enumerate token types. Multiple lexer states made it more trouble than it was worth. * Running lexer.py now gives you a REPL to play around in.
- Loading branch information
Showing
4 changed files
with
196 additions
and
65 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