Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/owners/lipsum/PhabricatorOwnersPathContextFreeGrammar.php
12256 views
1
<?php
2
3
final class PhabricatorOwnersPathContextFreeGrammar
4
extends PhutilContextFreeGrammar {
5
6
protected function getRules() {
7
return array(
8
'start' => array(
9
'[path]',
10
),
11
'path' => array(
12
'/',
13
'/[directories]',
14
),
15
'directories' => array(
16
'[directory-name]',
17
'[directories][directory-name]',
18
),
19
'directory-name' => array(
20
'[directory-part]/',
21
),
22
'directory-part' => array(
23
'src',
24
'doc',
25
'bin',
26
'tmp',
27
'log',
28
'bak',
29
'applications',
30
'var',
31
'home',
32
'user',
33
'lib',
34
'tests',
35
'webroot',
36
'externals',
37
'third-party',
38
'libraries',
39
'config',
40
'media',
41
'resources',
42
'support',
43
'scripts',
44
),
45
);
46
}
47
48
}
49
50