Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92695146
PhutilLipsumContextFreeGrammar.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 20:49
Size
2 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 20:49 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
22488383
Attached To
rPHU libphutil
PhutilLipsumContextFreeGrammar.php
View Options
<?php
final
class
PhutilLipsumContextFreeGrammar
extends
PhutilContextFreeGrammar
{
protected
function
getRules
()
{
return
array
(
'start'
=>
array
(
'[words].'
,
'[words].'
,
'[words].'
,
'[words]: [word], [word], [word] [word].'
,
'[words]; [lowerwords].'
,
'[words]!'
,
'[words], "[words]."'
,
'[words] ("[upperword] [upperword] [upperword]") [lowerwords].'
,
'[words]?'
,
),
'words'
=>
array
(
'[upperword] [lowerwords]'
,
),
'upperword'
=>
array
(
'Lorem'
,
'Ipsum'
,
'Dolor'
,
'Sit'
,
'Amet'
,
),
'lowerwords'
=>
array
(
'[word]'
,
'[word] [word]'
,
'[word] [word] [word]'
,
'[word] [word] [word] [word]'
,
'[word] [word] [word] [word] [word]'
,
'[word] [word] [word] [word] [word]'
,
'[word] [word] [word] [word] [word] [word]'
,
'[word] [word] [word] [word] [word] [word]'
,
),
'word'
=>
array
(
'ad'
,
'adipisicing'
,
'aliqua'
,
'aliquip'
,
'amet'
,
'anim'
,
'aute'
,
'cillum'
,
'commodo'
,
'consectetur'
,
'consequat'
,
'culpa'
,
'cupidatat'
,
'deserunt'
,
'do'
,
'dolor'
,
'dolore'
,
'duis'
,
'ea'
,
'eiusmod'
,
'elit'
,
'enim'
,
'esse'
,
'est'
,
'et'
,
'eu'
,
'ex'
,
'excepteur'
,
'exercitation'
,
'fugiat'
,
'id'
,
'in'
,
'incididunt'
,
'ipsum'
,
'irure'
,
'labore'
,
'laboris'
,
'laborum'
,
'lorem'
,
'magna'
,
'minim'
,
'mollit'
,
'nisi'
,
'non'
,
'nostrud'
,
'nulla'
,
'occaecat'
,
'officia'
,
'pariatur'
,
'proident'
,
'qui'
,
'quis'
,
'reprehenderit'
,
'sed'
,
'sint'
,
'sit'
,
'sunt'
,
'tempor'
,
'ullamco'
,
'ut'
,
'velit'
,
'veniam'
,
'voluptate'
,
),
);
}
}
Event Timeline
Log In to Comment