mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-12-03 09:58:01 +01:00
25 lines
307 B
Plaintext
25 lines
307 B
Plaintext
Type
|
|
= Atomic (Union / Intersection)?
|
|
|
|
Union
|
|
= ('|' Atomic)+
|
|
|
|
Intersection
|
|
= ('&' Atomic)+
|
|
|
|
Atomic
|
|
= Identifier (Generic / Array)?
|
|
/ '(' Type ')' Array?
|
|
|
|
Generic
|
|
= '<' Type (',' Type)* '>'
|
|
|
|
Array
|
|
= ('[' ']')+
|
|
|
|
Identifier
|
|
= ('\'? Word)+
|
|
|
|
Word
|
|
= [a-zA-Z_\127-\255\\][a-zA-Z0-9_\127-\255\\]*
|