OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [regexp/] [syntax/] [perl_groups.go] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// GENERATED BY make_perl_groups.pl; DO NOT EDIT.
2
// make_perl_groups.pl >perl_groups.go
3
 
4
package syntax
5
 
6
var code1 = []rune{ /* \d */
7
        0x30, 0x39,
8
}
9
 
10
var code2 = []rune{ /* \s */
11
        0x9, 0xa,
12
        0xc, 0xd,
13
        0x20, 0x20,
14
}
15
 
16
var code3 = []rune{ /* \w */
17
        0x30, 0x39,
18
        0x41, 0x5a,
19
        0x5f, 0x5f,
20
        0x61, 0x7a,
21
}
22
 
23
var perlGroup = map[string]charGroup{
24
        `\d`: {+1, code1},
25
        `\D`: {-1, code1},
26
        `\s`: {+1, code2},
27
        `\S`: {-1, code2},
28
        `\w`: {+1, code3},
29
        `\W`: {-1, code3},
30
}
31
var code4 = []rune{ /* [:alnum:] */
32
        0x30, 0x39,
33
        0x41, 0x5a,
34
        0x61, 0x7a,
35
}
36
 
37
var code5 = []rune{ /* [:alpha:] */
38
        0x41, 0x5a,
39
        0x61, 0x7a,
40
}
41
 
42
var code6 = []rune{ /* [:ascii:] */
43
        0x0, 0x7f,
44
}
45
 
46
var code7 = []rune{ /* [:blank:] */
47
        0x9, 0x9,
48
        0x20, 0x20,
49
}
50
 
51
var code8 = []rune{ /* [:cntrl:] */
52
        0x0, 0x1f,
53
        0x7f, 0x7f,
54
}
55
 
56
var code9 = []rune{ /* [:digit:] */
57
        0x30, 0x39,
58
}
59
 
60
var code10 = []rune{ /* [:graph:] */
61
        0x21, 0x7e,
62
}
63
 
64
var code11 = []rune{ /* [:lower:] */
65
        0x61, 0x7a,
66
}
67
 
68
var code12 = []rune{ /* [:print:] */
69
        0x20, 0x7e,
70
}
71
 
72
var code13 = []rune{ /* [:punct:] */
73
        0x21, 0x2f,
74
        0x3a, 0x40,
75
        0x5b, 0x60,
76
        0x7b, 0x7e,
77
}
78
 
79
var code14 = []rune{ /* [:space:] */
80
        0x9, 0xd,
81
        0x20, 0x20,
82
}
83
 
84
var code15 = []rune{ /* [:upper:] */
85
        0x41, 0x5a,
86
}
87
 
88
var code16 = []rune{ /* [:word:] */
89
        0x30, 0x39,
90
        0x41, 0x5a,
91
        0x5f, 0x5f,
92
        0x61, 0x7a,
93
}
94
 
95
var code17 = []rune{ /* [:xdigit:] */
96
        0x30, 0x39,
97
        0x41, 0x46,
98
        0x61, 0x66,
99
}
100
 
101
var posixGroup = map[string]charGroup{
102
        `[:alnum:]`:   {+1, code4},
103
        `[:^alnum:]`:  {-1, code4},
104
        `[:alpha:]`:   {+1, code5},
105
        `[:^alpha:]`:  {-1, code5},
106
        `[:ascii:]`:   {+1, code6},
107
        `[:^ascii:]`:  {-1, code6},
108
        `[:blank:]`:   {+1, code7},
109
        `[:^blank:]`:  {-1, code7},
110
        `[:cntrl:]`:   {+1, code8},
111
        `[:^cntrl:]`:  {-1, code8},
112
        `[:digit:]`:   {+1, code9},
113
        `[:^digit:]`:  {-1, code9},
114
        `[:graph:]`:   {+1, code10},
115
        `[:^graph:]`:  {-1, code10},
116
        `[:lower:]`:   {+1, code11},
117
        `[:^lower:]`:  {-1, code11},
118
        `[:print:]`:   {+1, code12},
119
        `[:^print:]`:  {-1, code12},
120
        `[:punct:]`:   {+1, code13},
121
        `[:^punct:]`:  {-1, code13},
122
        `[:space:]`:   {+1, code14},
123
        `[:^space:]`:  {-1, code14},
124
        `[:upper:]`:   {+1, code15},
125
        `[:^upper:]`:  {-1, code15},
126
        `[:word:]`:    {+1, code16},
127
        `[:^word:]`:   {-1, code16},
128
        `[:xdigit:]`:  {+1, code17},
129
        `[:^xdigit:]`: {-1, code17},
130
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.