Skip to content

Commit 990093e

Browse files
authored
Merge pull request #5 from watzon/master
Make Parser and Tokenizer classes public
2 parents 3e6d6f4 + c42d09b commit 990093e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/html5/parser.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module HTML5
1010
"svg" => [Atom::Desc, Atom::ForeignObject, Atom::Title],
1111
}
1212

13-
private enum Scope
13+
enum Scope
1414
Default
1515
ListItem
1616
Button
@@ -22,7 +22,7 @@ module HTML5
2222

2323
# A parser implements the HTML5 parsing algorithm:
2424
# https://html.spec.whatwg.org/multipage/syntax.html#tree-construction
25-
private class Parser
25+
class Parser
2626
# tokenizer provides the tokens for the parser
2727
protected property tokenizer : Tokenizer
2828
# token is the most recently used Token

src/html5/token.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module HTML5
9393
end
9494

9595
# Tokenizer returns a stream of HTML Tokens
96-
private class Tokenizer
96+
class Tokenizer
9797
# r is teh source of HTML of text
9898
@r : IO
9999
# tt is TokenType of the current token

0 commit comments

Comments
 (0)