Last active
October 17, 2016 21:48
-
-
Save schaechinger/d186b22ccb13c569a7fa36aaa87df2d0 to your computer and use it in GitHub Desktop.
the dfa state definitions for html used by the web converter
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
I 0 | |
# tags | |
T 0 < 1 | |
F 1 ChevronOpen | |
T 1 / 2 | |
F 2 Slash | |
T 1 ! 14 | |
F 14 ExclamationMark | |
T 1,2,3,14 /[a-z]/i 3 | |
F 3 Identifier | |
T 3 > 4 | |
F 4 ChevronClose 0 | |
T 3,5 /\s/ 5 | |
F 5 WhiteSpace | |
T 5 / 6 | |
T 6 > 4 | |
T 5,7 /[a-z0-9\-]/i 7 | |
F 7 Identifier | |
E 7 5 | |
T 7 = 8 | |
F 8 Equals | |
T 8 " 9 | |
F 9 QuoteMark | |
T 8-10 /[^"]/i 10 | |
F 10 Content | |
E 10 5 | |
T 9,10 " 11 | |
F 11 QuoteMark 5 | |
# whitespaces | |
T 0,12 /\s/ 12 | |
F 12 WhiteSpace 0 | |
# text | |
T 0,13 /[^<]/i 13 | |
F 13 Content 0 | |
# comments | |
T 14 - 15 | |
T 15 - 16 | |
T 16 /\s/ 16 | |
F 16 CommentOpen | |
T 16,17 /[^\-\->]/i 17 | |
F 17 Content | |
T 17 - 18 | |
T 18 - 19 | |
T 19 > 20 | |
E 18,19 17 | |
F 20 CommentClose 0 | |
# todo: cdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment