Skip to content

Commit 039879f

Browse files
committed
add todo
1 parent 5ed03f1 commit 039879f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# HTML AST
2-
A HTML AST parser written in php. Inspired by the AST parser in TempestPHP (written by Brett Roose).
2+
An HTML AST (Abstract Syntax Tree) parser written in php. Inspired by the AST parser in TempestPHP (written by Brett Roose).
33

44
It has a built-in lexer to parse the html, and then a AST parser to convert it into a tree structure.
55
Finally, it comes with a printer to output properly formatted HTML (indented).
@@ -17,4 +17,9 @@ $nodeTree = $ast->parse();
1717

1818
//and if you want to output the resulting HTML
1919
echo Printer::make()->render($html);
20-
```
20+
```
21+
22+
## Todo
23+
* [ ] Add line numbers to lexer
24+
* [ ] Add html validator to ensure HTMl structure is valid
25+
* [ ] Add node visitors to allow changing HTML ?

0 commit comments

Comments
 (0)