Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12661030
PhutilTypeLexer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
788 B
Referenced Files
None
Subscribers
None
PhutilTypeLexer.php
View Options
<?php
/**
* Lexer for a simple type grammar. See @{class:PhutilTypeSpec} for a
* description.
*/
final
class
PhutilTypeLexer
extends
PhutilLexer
{
protected
function
getRawRules
()
{
return
array
(
'start'
=>
array
(
array
(
'
\s
+'
,
' '
),
array
(
'
\\
|'
,
'|'
),
array
(
'<'
,
'<'
),
array
(
'>'
,
'>'
),
array
(
','
,
','
),
array
(
'
\\
?'
,
'?'
),
array
(
'optional'
,
'opt'
),
array
(
'map'
,
'map'
),
array
(
'list'
,
'list'
),
array
(
'int|float|bool|string|null|callable|wild|regex'
,
'k'
),
array
(
'
\\\\
?[a-zA-Z_
\x
7f-
\x
ff]+(
\\\\
[a-zA-Z_
\x
7f-
\x
ff]+)*'
,
'k'
),
array
(
'
\\
('
,
'('
,
'comment'
),
),
'comment'
=>
array
(
array
(
'
\\
)'
,
')'
,
'!pop'
),
array
(
'[^
\\
)]+'
,
'cm'
),
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:43 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1077954
Default Alt Text
PhutilTypeLexer.php (788 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment