bibtex-ruby 1.3.11 → 1.3.12
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bibtex-ruby might be problematic. Click here for more details.
- data/Gemfile +3 -2
- data/Gemfile.lock +9 -1
- data/History.txt +4 -0
- data/Manifest +2 -2
- data/Rakefile +4 -2
- data/lib/bibtex.rb +6 -5
- data/lib/bibtex/bibtex.y +1 -1
- data/lib/bibtex/entry.rb +44 -19
- data/lib/bibtex/entry.rbc +198 -214
- data/lib/bibtex/lexer.rb +0 -3
- data/lib/bibtex/name_parser.rb +70 -128
- data/lib/bibtex/names.y +60 -44
- data/lib/bibtex/parser.rb +1 -1
- data/lib/bibtex/version.rb +1 -1
- data/lib/bibtex/version.rbc +1 -1
- data/profile.png +0 -0
- data/test/benchmark.rb +8 -8
- data/test/bibtex/test_entry.rb +7 -0
- data/test/profile.dot +191 -0
- data/test/profile.rb +2 -5
- metadata +23 -29
- data/lib/bibtex/name_parser.output +0 -486
- data/lib/bibtex/parser.output +0 -591
@@ -1,486 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
-------- Grammar --------
|
4
|
-
|
5
|
-
rule 1 result:
|
6
|
-
rule 2 result: names
|
7
|
-
rule 3 names: name
|
8
|
-
rule 4 names: names AND name
|
9
|
-
rule 5 name: word
|
10
|
-
rule 6 name: u_words word
|
11
|
-
rule 7 name: u_words von last
|
12
|
-
rule 8 name: von last
|
13
|
-
rule 9 name: last COMMA first
|
14
|
-
rule 10 name: von last COMMA first
|
15
|
-
rule 11 name: u_words von last COMMA first
|
16
|
-
rule 12 von: LWORD
|
17
|
-
rule 13 von: von LWORD
|
18
|
-
rule 14 von: von u_words LWORD
|
19
|
-
rule 15 last: LWORD
|
20
|
-
rule 16 last: u_words
|
21
|
-
rule 17 first: opt_words
|
22
|
-
rule 18 first: opt_words COMMA opt_words
|
23
|
-
rule 19 u_words: u_word
|
24
|
-
rule 20 u_words: u_words u_word
|
25
|
-
rule 21 u_word: UWORD
|
26
|
-
rule 22 u_word: PWORD
|
27
|
-
rule 23 words: word
|
28
|
-
rule 24 words: words word
|
29
|
-
rule 25 opt_words:
|
30
|
-
rule 26 opt_words: words
|
31
|
-
rule 27 word: LWORD
|
32
|
-
rule 28 word: UWORD
|
33
|
-
rule 29 word: PWORD
|
34
|
-
|
35
|
-
------- Symbols -------
|
36
|
-
|
37
|
-
**Nonterminals, with rules where they appear
|
38
|
-
|
39
|
-
$start (8)
|
40
|
-
on right:
|
41
|
-
on left :
|
42
|
-
result (9)
|
43
|
-
on right:
|
44
|
-
on left : 1 2
|
45
|
-
names (10)
|
46
|
-
on right: 2 4
|
47
|
-
on left : 3 4
|
48
|
-
name (11)
|
49
|
-
on right: 3 4
|
50
|
-
on left : 5 6 7 8 9 10 11
|
51
|
-
word (12)
|
52
|
-
on right: 5 6 23 24
|
53
|
-
on left : 27 28 29
|
54
|
-
u_words (13)
|
55
|
-
on right: 6 7 11 14 16 20
|
56
|
-
on left : 19 20
|
57
|
-
von (14)
|
58
|
-
on right: 7 8 10 11 13 14
|
59
|
-
on left : 12 13 14
|
60
|
-
last (15)
|
61
|
-
on right: 7 8 9 10 11
|
62
|
-
on left : 15 16
|
63
|
-
first (16)
|
64
|
-
on right: 9 10 11
|
65
|
-
on left : 17 18
|
66
|
-
opt_words (17)
|
67
|
-
on right: 17 18
|
68
|
-
on left : 25 26
|
69
|
-
u_word (18)
|
70
|
-
on right: 19 20
|
71
|
-
on left : 21 22
|
72
|
-
words (19)
|
73
|
-
on right: 24 26
|
74
|
-
on left : 23 24
|
75
|
-
|
76
|
-
**Terminals, with rules where they appear
|
77
|
-
|
78
|
-
$end (0)
|
79
|
-
error (1)
|
80
|
-
COMMA (2) 9 10 11 18
|
81
|
-
UWORD (3) 21 28
|
82
|
-
LWORD (4) 12 13 14 15 27
|
83
|
-
PWORD (5) 22 29
|
84
|
-
AND (6) 4
|
85
|
-
ERROR (7)
|
86
|
-
|
87
|
-
--------- State ---------
|
88
|
-
|
89
|
-
state 0
|
90
|
-
|
91
|
-
|
92
|
-
UWORD shift, and go to state 10
|
93
|
-
LWORD shift, and go to state 8
|
94
|
-
PWORD shift, and go to state 11
|
95
|
-
$default reduce using rule 1 (result)
|
96
|
-
|
97
|
-
result go to state 1
|
98
|
-
names go to state 2
|
99
|
-
name go to state 3
|
100
|
-
word go to state 4
|
101
|
-
u_words go to state 5
|
102
|
-
von go to state 6
|
103
|
-
last go to state 7
|
104
|
-
u_word go to state 9
|
105
|
-
|
106
|
-
state 1
|
107
|
-
|
108
|
-
|
109
|
-
$end shift, and go to state 12
|
110
|
-
|
111
|
-
|
112
|
-
state 2
|
113
|
-
|
114
|
-
2) result : names _
|
115
|
-
4) names : names _ AND name
|
116
|
-
|
117
|
-
AND shift, and go to state 13
|
118
|
-
$default reduce using rule 2 (result)
|
119
|
-
|
120
|
-
|
121
|
-
state 3
|
122
|
-
|
123
|
-
3) names : name _
|
124
|
-
|
125
|
-
$default reduce using rule 3 (names)
|
126
|
-
|
127
|
-
|
128
|
-
state 4
|
129
|
-
|
130
|
-
5) name : word _
|
131
|
-
|
132
|
-
$default reduce using rule 5 (name)
|
133
|
-
|
134
|
-
|
135
|
-
state 5
|
136
|
-
|
137
|
-
6) name : u_words _ word
|
138
|
-
7) name : u_words _ von last
|
139
|
-
11) name : u_words _ von last COMMA first
|
140
|
-
16) last : u_words _
|
141
|
-
20) u_words : u_words _ u_word
|
142
|
-
|
143
|
-
UWORD shift, and go to state 10
|
144
|
-
LWORD shift, and go to state 16
|
145
|
-
PWORD shift, and go to state 11
|
146
|
-
$default reduce using rule 16 (last)
|
147
|
-
|
148
|
-
word go to state 14
|
149
|
-
von go to state 15
|
150
|
-
u_word go to state 17
|
151
|
-
|
152
|
-
state 6
|
153
|
-
|
154
|
-
8) name : von _ last
|
155
|
-
10) name : von _ last COMMA first
|
156
|
-
13) von : von _ LWORD
|
157
|
-
14) von : von _ u_words LWORD
|
158
|
-
|
159
|
-
UWORD shift, and go to state 21
|
160
|
-
LWORD shift, and go to state 19
|
161
|
-
PWORD shift, and go to state 22
|
162
|
-
|
163
|
-
last go to state 18
|
164
|
-
u_words go to state 20
|
165
|
-
u_word go to state 9
|
166
|
-
|
167
|
-
state 7
|
168
|
-
|
169
|
-
9) name : last _ COMMA first
|
170
|
-
|
171
|
-
COMMA shift, and go to state 23
|
172
|
-
|
173
|
-
|
174
|
-
state 8
|
175
|
-
|
176
|
-
12) von : LWORD _
|
177
|
-
15) last : LWORD _
|
178
|
-
27) word : LWORD _
|
179
|
-
|
180
|
-
$end reduce using rule 27 (word)
|
181
|
-
COMMA reduce using rule 15 (last)
|
182
|
-
AND reduce using rule 27 (word)
|
183
|
-
$default reduce using rule 12 (von)
|
184
|
-
|
185
|
-
|
186
|
-
state 9
|
187
|
-
|
188
|
-
19) u_words : u_word _
|
189
|
-
|
190
|
-
$default reduce using rule 19 (u_words)
|
191
|
-
|
192
|
-
|
193
|
-
state 10
|
194
|
-
|
195
|
-
21) u_word : UWORD _
|
196
|
-
28) word : UWORD _
|
197
|
-
|
198
|
-
$end reduce using rule 28 (word)
|
199
|
-
AND reduce using rule 28 (word)
|
200
|
-
$default reduce using rule 21 (u_word)
|
201
|
-
|
202
|
-
|
203
|
-
state 11
|
204
|
-
|
205
|
-
22) u_word : PWORD _
|
206
|
-
29) word : PWORD _
|
207
|
-
|
208
|
-
$end reduce using rule 29 (word)
|
209
|
-
AND reduce using rule 29 (word)
|
210
|
-
$default reduce using rule 22 (u_word)
|
211
|
-
|
212
|
-
|
213
|
-
state 12
|
214
|
-
|
215
|
-
|
216
|
-
$end shift, and go to state 24
|
217
|
-
|
218
|
-
|
219
|
-
state 13
|
220
|
-
|
221
|
-
4) names : names AND _ name
|
222
|
-
|
223
|
-
UWORD shift, and go to state 10
|
224
|
-
LWORD shift, and go to state 8
|
225
|
-
PWORD shift, and go to state 11
|
226
|
-
|
227
|
-
name go to state 25
|
228
|
-
word go to state 4
|
229
|
-
u_words go to state 5
|
230
|
-
von go to state 6
|
231
|
-
last go to state 7
|
232
|
-
u_word go to state 9
|
233
|
-
|
234
|
-
state 14
|
235
|
-
|
236
|
-
6) name : u_words word _
|
237
|
-
|
238
|
-
$default reduce using rule 6 (name)
|
239
|
-
|
240
|
-
|
241
|
-
state 15
|
242
|
-
|
243
|
-
7) name : u_words von _ last
|
244
|
-
11) name : u_words von _ last COMMA first
|
245
|
-
13) von : von _ LWORD
|
246
|
-
14) von : von _ u_words LWORD
|
247
|
-
|
248
|
-
UWORD shift, and go to state 21
|
249
|
-
LWORD shift, and go to state 19
|
250
|
-
PWORD shift, and go to state 22
|
251
|
-
|
252
|
-
last go to state 26
|
253
|
-
u_words go to state 20
|
254
|
-
u_word go to state 9
|
255
|
-
|
256
|
-
state 16
|
257
|
-
|
258
|
-
12) von : LWORD _
|
259
|
-
27) word : LWORD _
|
260
|
-
|
261
|
-
$end reduce using rule 27 (word)
|
262
|
-
AND reduce using rule 27 (word)
|
263
|
-
$default reduce using rule 12 (von)
|
264
|
-
|
265
|
-
|
266
|
-
state 17
|
267
|
-
|
268
|
-
20) u_words : u_words u_word _
|
269
|
-
|
270
|
-
$default reduce using rule 20 (u_words)
|
271
|
-
|
272
|
-
|
273
|
-
state 18
|
274
|
-
|
275
|
-
8) name : von last _
|
276
|
-
10) name : von last _ COMMA first
|
277
|
-
|
278
|
-
COMMA shift, and go to state 27
|
279
|
-
$default reduce using rule 8 (name)
|
280
|
-
|
281
|
-
|
282
|
-
state 19
|
283
|
-
|
284
|
-
13) von : von LWORD _
|
285
|
-
15) last : LWORD _
|
286
|
-
|
287
|
-
$end reduce using rule 15 (last)
|
288
|
-
COMMA reduce using rule 15 (last)
|
289
|
-
AND reduce using rule 15 (last)
|
290
|
-
$default reduce using rule 13 (von)
|
291
|
-
|
292
|
-
|
293
|
-
state 20
|
294
|
-
|
295
|
-
14) von : von u_words _ LWORD
|
296
|
-
16) last : u_words _
|
297
|
-
20) u_words : u_words _ u_word
|
298
|
-
|
299
|
-
UWORD shift, and go to state 21
|
300
|
-
LWORD shift, and go to state 28
|
301
|
-
PWORD shift, and go to state 22
|
302
|
-
$default reduce using rule 16 (last)
|
303
|
-
|
304
|
-
u_word go to state 17
|
305
|
-
|
306
|
-
state 21
|
307
|
-
|
308
|
-
21) u_word : UWORD _
|
309
|
-
|
310
|
-
$default reduce using rule 21 (u_word)
|
311
|
-
|
312
|
-
|
313
|
-
state 22
|
314
|
-
|
315
|
-
22) u_word : PWORD _
|
316
|
-
|
317
|
-
$default reduce using rule 22 (u_word)
|
318
|
-
|
319
|
-
|
320
|
-
state 23
|
321
|
-
|
322
|
-
9) name : last COMMA _ first
|
323
|
-
|
324
|
-
UWORD shift, and go to state 34
|
325
|
-
LWORD shift, and go to state 33
|
326
|
-
PWORD shift, and go to state 35
|
327
|
-
$default reduce using rule 25 (opt_words)
|
328
|
-
|
329
|
-
first go to state 29
|
330
|
-
opt_words go to state 30
|
331
|
-
word go to state 31
|
332
|
-
words go to state 32
|
333
|
-
|
334
|
-
state 24
|
335
|
-
|
336
|
-
|
337
|
-
$default accept
|
338
|
-
|
339
|
-
|
340
|
-
state 25
|
341
|
-
|
342
|
-
4) names : names AND name _
|
343
|
-
|
344
|
-
$default reduce using rule 4 (names)
|
345
|
-
|
346
|
-
|
347
|
-
state 26
|
348
|
-
|
349
|
-
7) name : u_words von last _
|
350
|
-
11) name : u_words von last _ COMMA first
|
351
|
-
|
352
|
-
COMMA shift, and go to state 36
|
353
|
-
$default reduce using rule 7 (name)
|
354
|
-
|
355
|
-
|
356
|
-
state 27
|
357
|
-
|
358
|
-
10) name : von last COMMA _ first
|
359
|
-
|
360
|
-
UWORD shift, and go to state 34
|
361
|
-
LWORD shift, and go to state 33
|
362
|
-
PWORD shift, and go to state 35
|
363
|
-
$default reduce using rule 25 (opt_words)
|
364
|
-
|
365
|
-
first go to state 37
|
366
|
-
opt_words go to state 30
|
367
|
-
word go to state 31
|
368
|
-
words go to state 32
|
369
|
-
|
370
|
-
state 28
|
371
|
-
|
372
|
-
14) von : von u_words LWORD _
|
373
|
-
|
374
|
-
$default reduce using rule 14 (von)
|
375
|
-
|
376
|
-
|
377
|
-
state 29
|
378
|
-
|
379
|
-
9) name : last COMMA first _
|
380
|
-
|
381
|
-
$default reduce using rule 9 (name)
|
382
|
-
|
383
|
-
|
384
|
-
state 30
|
385
|
-
|
386
|
-
17) first : opt_words _
|
387
|
-
18) first : opt_words _ COMMA opt_words
|
388
|
-
|
389
|
-
COMMA shift, and go to state 38
|
390
|
-
$default reduce using rule 17 (first)
|
391
|
-
|
392
|
-
|
393
|
-
state 31
|
394
|
-
|
395
|
-
23) words : word _
|
396
|
-
|
397
|
-
$default reduce using rule 23 (words)
|
398
|
-
|
399
|
-
|
400
|
-
state 32
|
401
|
-
|
402
|
-
24) words : words _ word
|
403
|
-
26) opt_words : words _
|
404
|
-
|
405
|
-
UWORD shift, and go to state 34
|
406
|
-
LWORD shift, and go to state 33
|
407
|
-
PWORD shift, and go to state 35
|
408
|
-
$default reduce using rule 26 (opt_words)
|
409
|
-
|
410
|
-
word go to state 39
|
411
|
-
|
412
|
-
state 33
|
413
|
-
|
414
|
-
27) word : LWORD _
|
415
|
-
|
416
|
-
$default reduce using rule 27 (word)
|
417
|
-
|
418
|
-
|
419
|
-
state 34
|
420
|
-
|
421
|
-
28) word : UWORD _
|
422
|
-
|
423
|
-
$default reduce using rule 28 (word)
|
424
|
-
|
425
|
-
|
426
|
-
state 35
|
427
|
-
|
428
|
-
29) word : PWORD _
|
429
|
-
|
430
|
-
$default reduce using rule 29 (word)
|
431
|
-
|
432
|
-
|
433
|
-
state 36
|
434
|
-
|
435
|
-
11) name : u_words von last COMMA _ first
|
436
|
-
|
437
|
-
UWORD shift, and go to state 34
|
438
|
-
LWORD shift, and go to state 33
|
439
|
-
PWORD shift, and go to state 35
|
440
|
-
$default reduce using rule 25 (opt_words)
|
441
|
-
|
442
|
-
first go to state 40
|
443
|
-
opt_words go to state 30
|
444
|
-
word go to state 31
|
445
|
-
words go to state 32
|
446
|
-
|
447
|
-
state 37
|
448
|
-
|
449
|
-
10) name : von last COMMA first _
|
450
|
-
|
451
|
-
$default reduce using rule 10 (name)
|
452
|
-
|
453
|
-
|
454
|
-
state 38
|
455
|
-
|
456
|
-
18) first : opt_words COMMA _ opt_words
|
457
|
-
|
458
|
-
UWORD shift, and go to state 34
|
459
|
-
LWORD shift, and go to state 33
|
460
|
-
PWORD shift, and go to state 35
|
461
|
-
$default reduce using rule 25 (opt_words)
|
462
|
-
|
463
|
-
opt_words go to state 41
|
464
|
-
word go to state 31
|
465
|
-
words go to state 32
|
466
|
-
|
467
|
-
state 39
|
468
|
-
|
469
|
-
24) words : words word _
|
470
|
-
|
471
|
-
$default reduce using rule 24 (words)
|
472
|
-
|
473
|
-
|
474
|
-
state 40
|
475
|
-
|
476
|
-
11) name : u_words von last COMMA first _
|
477
|
-
|
478
|
-
$default reduce using rule 11 (name)
|
479
|
-
|
480
|
-
|
481
|
-
state 41
|
482
|
-
|
483
|
-
18) first : opt_words COMMA opt_words _
|
484
|
-
|
485
|
-
$default reduce using rule 18 (first)
|
486
|
-
|