2023-09-29 00:30:43 -04:00
|
|
|
Defined Tokens
|
|
|
|
|
|
|
|
<str> => any text in quotes ex: "Hello World!"
|
|
|
|
<ident> => text not inside of quotes ex: h3
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-10-04 13:02:36 -04:00
|
|
|
<doc> ::= [<doctype>] (<elem> | <inner>)*
|
2023-09-29 00:30:43 -04:00
|
|
|
<doctype> ::= "<" "!" "doctype" "html" ">"
|
|
|
|
<elem> ::=
|
|
|
|
| "<" <ident> <attr>* ">" (<elem> | <inner>)* "<" "/" <ident> ">"
|
|
|
|
| "<" <ident> <attr>* "/" ">"
|
2023-09-29 19:52:17 -04:00
|
|
|
<attr> ::= <ident> "=" (<str> | <ident>)
|
2023-09-29 00:30:43 -04:00
|
|
|
<inner> ::= (<ident> | <dot> | <at> | <hash> | <num> | <comma> | <semi>)+
|
|
|
|
|