16 lines
404 B
Plaintext
16 lines
404 B
Plaintext
Defined Tokens
|
|
|
|
<str> => any text in quotes ex: "Hello World!"
|
|
<ident> => text not inside of quotes ex: h3
|
|
|
|
---
|
|
|
|
<doc> ::= [<doctype>] <elem>
|
|
<doctype> ::= "<" "!" "doctype" "html" ">"
|
|
<elem> ::=
|
|
| "<" <ident> <attr>* ">" (<elem> | <inner>)* "<" "/" <ident> ">"
|
|
| "<" <ident> <attr>* "/" ">"
|
|
<attr> ::= <ident> "=" <str>
|
|
<inner> ::= (<ident> | <dot> | <at> | <hash> | <num> | <comma> | <semi>)+
|
|
|