iska
4592037aba
Fix "return" attribute in source code documentation
...
@returns is ignored by jazzy
2016-01-18 21:48:00 +01:00
iska
0a620d74b6
Add source documentation for the Toknizer classes
2015-12-19 23:59:39 +01:00
iska
af55cf01cb
Reinitialize the tokenizer when parsing the same input as a fragment case multiple times
...
The tokenizer is a NSEnumerator, thus cannot be reseted, hence the change.
2015-04-11 22:34:07 +02:00
iska
d1a4aeb5e1
Add HTML Parser methods for parsing a document and document fragments
...
The parser is initialized with a HTML string which can be parsed as a document or a document
fragment. When parsing a fragment a context element should be provided.
It is also possible to parse the same string as a fragment for different context elements. In this case
the parser reset its internal state and runs the parsing algorithm again. Parsing a fragment for the
same context element runs the algorithm only once, since the parser caches the context element
and the parsing results.
2015-04-04 02:30:08 +02:00
iska
90cbccbc16
Remove NSFastEnumeration for the Tokenizer and subclass the NSEnumerator instead
...
Memory management tends to be a bit complex in this case, especially under ARC, hence the
change to prevent a headache
2015-03-22 00:12:38 +01:00
iska
9f4de95e62
Add HTML Tokenizer property to set the associated parser object
2015-03-15 21:04:25 +01:00
iska
2d6889878b
Add implementation for FastEnumeration protocol for forin-iteration
2014-11-02 13:54:21 +01:00
iska
971f7b3cf0
Add methods to access tokens in the Tokenizer class
2014-10-26 02:03:37 +02:00
iska
f96c69c6f7
Remove fast enumeration protocol and its method implementation from Tokenizer class
2014-10-26 01:55:12 +02:00
iska
9e198c9766
Add init method to Tokenizer header and extend to accept string parameter
2014-10-24 01:06:21 +02:00
iska
b0391dc7ba
Add fast enumeration for HTML Tokens in the Tokenizer class
2014-10-05 15:48:01 +02:00
iska
f7d7d987f3
Add method stubs for tokenizer states
...
These states are defined in the HTML standard:
https://html.spec.whatwg.org/multipage/syntax.html#tokenization
2014-09-20 23:08:45 +02:00
iska
fb01febfca
Add class stubs for HTML tokenizer implementation
...
https://html.spec.whatwg.org/multipage/syntax.html#tokenization
2014-09-20 23:04:23 +02:00