oga 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -141,14 +141,14 @@ racc_action_pointer = [
141
141
  211, nil, 192, nil, 44, nil, 8, nil, nil ]
142
142
 
143
143
  racc_action_default = [
144
- -2, -54, -1, -3, -4, -5, -6, -7, -8, -9,
145
- -10, -11, -54, -17, -54, -20, -21, -23, -24, -25,
146
- -43, -50, -51, -52, -53, -54, -54, -54, -54, -54,
147
- -54, -54, -54, -54, -54, -54, -54, -54, -54, -54,
148
- -54, -12, -13, -14, -19, -18, -22, -54, -54, -54,
149
- -42, -44, -45, 79, -28, -29, -30, -31, -32, -33,
150
- -34, -35, -36, -37, -38, -39, -40, -41, -15, -16,
151
- -54, -26, -48, -46, -54, -27, -54, -47, -49 ]
144
+ -2, -55, -1, -3, -4, -5, -6, -7, -8, -9,
145
+ -10, -11, -55, -17, -20, -21, -22, -24, -25, -26,
146
+ -44, -51, -52, -53, -54, -55, -55, -55, -55, -55,
147
+ -55, -55, -55, -55, -55, -55, -55, -55, -55, -55,
148
+ -55, -12, -13, -14, -19, -18, -23, -55, -55, -55,
149
+ -43, -45, -46, 79, -29, -30, -31, -32, -33, -34,
150
+ -35, -36, -37, -38, -39, -40, -41, -42, -15, -16,
151
+ -55, -27, -49, -47, -55, -28, -55, -48, -50 ]
152
152
 
153
153
  racc_goto_table = [
154
154
  2, 51, 46, 50, 1, nil, nil, nil, nil, nil,
@@ -193,15 +193,15 @@ racc_reduce_table = [
193
193
  1, 39, :_reduce_17,
194
194
  2, 40, :_reduce_18,
195
195
  2, 40, :_reduce_19,
196
- 1, 33, :_reduce_20,
197
- 1, 44, :_reduce_21,
198
- 2, 44, :_reduce_22,
199
- 1, 44, :_reduce_23,
200
- 1, 47, :_reduce_24,
201
- 1, 45, :_reduce_25,
202
- 3, 45, :_reduce_26,
203
- 3, 46, :_reduce_27,
204
- 3, 34, :_reduce_28,
196
+ 1, 40, :_reduce_20,
197
+ 1, 33, :_reduce_21,
198
+ 1, 44, :_reduce_22,
199
+ 2, 44, :_reduce_23,
200
+ 1, 44, :_reduce_24,
201
+ 1, 47, :_reduce_25,
202
+ 1, 45, :_reduce_26,
203
+ 3, 45, :_reduce_27,
204
+ 3, 46, :_reduce_28,
205
205
  3, 34, :_reduce_29,
206
206
  3, 34, :_reduce_30,
207
207
  3, 34, :_reduce_31,
@@ -215,20 +215,21 @@ racc_reduce_table = [
215
215
  3, 34, :_reduce_39,
216
216
  3, 34, :_reduce_40,
217
217
  3, 34, :_reduce_41,
218
- 2, 35, :_reduce_42,
219
- 1, 35, :_reduce_43,
218
+ 3, 34, :_reduce_42,
219
+ 2, 35, :_reduce_43,
220
+ 1, 35, :_reduce_44,
220
221
  1, 48, :_reduce_none,
221
222
  1, 48, :_reduce_none,
222
- 3, 38, :_reduce_46,
223
- 4, 38, :_reduce_47,
224
- 1, 49, :_reduce_48,
225
- 3, 49, :_reduce_49,
226
- 1, 36, :_reduce_50,
227
- 1, 37, :_reduce_51,
223
+ 3, 38, :_reduce_47,
224
+ 4, 38, :_reduce_48,
225
+ 1, 49, :_reduce_49,
226
+ 3, 49, :_reduce_50,
227
+ 1, 36, :_reduce_51,
228
228
  1, 37, :_reduce_52,
229
- 1, 41, :_reduce_53 ]
229
+ 1, 37, :_reduce_53,
230
+ 1, 41, :_reduce_54 ]
230
231
 
231
- racc_reduce_n = 54
232
+ racc_reduce_n = 55
232
233
 
233
234
  racc_shift_n = 79
234
235
 
@@ -395,134 +396,138 @@ def _reduce_19(val, _values)
395
396
  end
396
397
 
397
398
  def _reduce_20(val, _values)
398
- s(:axis, 'child', val[0])
399
+ s(:absolute_path)
399
400
  end
400
401
 
401
402
  def _reduce_21(val, _values)
402
- s(:test, *val[0])
403
+ s(:axis, 'child', val[0])
403
404
  end
404
405
 
405
406
  def _reduce_22(val, _values)
406
- s(:test, *val[0], val[1])
407
+ s(:test, *val[0])
407
408
  end
408
409
 
409
410
  def _reduce_23(val, _values)
410
- val[0]
411
+ s(:test, *val[0], val[1])
411
412
  end
412
413
 
413
414
  def _reduce_24(val, _values)
414
- s(:type_test, val[0])
415
+ val[0]
415
416
  end
416
417
 
417
418
  def _reduce_25(val, _values)
418
- [nil, val[0]]
419
+ s(:type_test, val[0])
419
420
  end
420
421
 
421
422
  def _reduce_26(val, _values)
422
- [val[0], val[2]]
423
+ [nil, val[0]]
423
424
  end
424
425
 
425
426
  def _reduce_27(val, _values)
426
- val[1]
427
+ [val[0], val[2]]
427
428
  end
428
429
 
429
430
  def _reduce_28(val, _values)
430
- s(:pipe, val[0], val[2])
431
+ val[1]
431
432
  end
432
433
 
433
434
  def _reduce_29(val, _values)
434
- s(:and, val[0], val[2])
435
+ s(:pipe, val[0], val[2])
435
436
  end
436
437
 
437
438
  def _reduce_30(val, _values)
438
- s(:or, val[0], val[2])
439
+ s(:and, val[0], val[2])
439
440
  end
440
441
 
441
442
  def _reduce_31(val, _values)
442
- s(:add, val[0], val[2])
443
+ s(:or, val[0], val[2])
443
444
  end
444
445
 
445
446
  def _reduce_32(val, _values)
446
- s(:div, val[0], val[2])
447
+ s(:add, val[0], val[2])
447
448
  end
448
449
 
449
450
  def _reduce_33(val, _values)
450
- s(:mod, val[0], val[2])
451
+ s(:div, val[0], val[2])
451
452
  end
452
453
 
453
454
  def _reduce_34(val, _values)
454
- s(:eq, val[0], val[2])
455
+ s(:mod, val[0], val[2])
455
456
  end
456
457
 
457
458
  def _reduce_35(val, _values)
458
- s(:neq, val[0], val[2])
459
+ s(:eq, val[0], val[2])
459
460
  end
460
461
 
461
462
  def _reduce_36(val, _values)
462
- s(:lt, val[0], val[2])
463
+ s(:neq, val[0], val[2])
463
464
  end
464
465
 
465
466
  def _reduce_37(val, _values)
466
- s(:gt, val[0], val[2])
467
+ s(:lt, val[0], val[2])
467
468
  end
468
469
 
469
470
  def _reduce_38(val, _values)
470
- s(:lte, val[0], val[2])
471
+ s(:gt, val[0], val[2])
471
472
  end
472
473
 
473
474
  def _reduce_39(val, _values)
474
- s(:gte, val[0], val[2])
475
+ s(:lte, val[0], val[2])
475
476
  end
476
477
 
477
478
  def _reduce_40(val, _values)
478
- s(:mul, val[0], val[2])
479
+ s(:gte, val[0], val[2])
479
480
  end
480
481
 
481
482
  def _reduce_41(val, _values)
482
- s(:sub, val[0], val[2])
483
+ s(:mul, val[0], val[2])
483
484
  end
484
485
 
485
486
  def _reduce_42(val, _values)
486
- s(:axis, val[0], val[1])
487
+ s(:sub, val[0], val[2])
487
488
  end
488
489
 
489
490
  def _reduce_43(val, _values)
490
- s(:axis, val[0])
491
+ s(:axis, val[0], val[1])
491
492
  end
492
493
 
493
- # reduce 44 omitted
494
+ def _reduce_44(val, _values)
495
+ s(:axis, val[0])
496
+ end
494
497
 
495
498
  # reduce 45 omitted
496
499
 
497
- def _reduce_46(val, _values)
500
+ # reduce 46 omitted
501
+
502
+ def _reduce_47(val, _values)
498
503
  s(:call, val[0])
499
504
  end
500
505
 
501
- def _reduce_47(val, _values)
506
+ def _reduce_48(val, _values)
502
507
  s(:call, val[0], *val[2])
503
508
  end
504
509
 
505
- def _reduce_48(val, _values)
510
+ def _reduce_49(val, _values)
506
511
  val
507
512
  end
508
513
 
509
- def _reduce_49(val, _values)
514
+ def _reduce_50(val, _values)
510
515
  val[2].unshift(val[0])
511
516
  end
512
517
 
513
- def _reduce_50(val, _values)
518
+ def _reduce_51(val, _values)
514
519
  s(:string, val[0])
515
520
  end
516
521
 
517
- def _reduce_51(val, _values)
522
+ def _reduce_52(val, _values)
518
523
  s(:int, val[0])
519
524
  end
520
525
 
521
- def _reduce_52(val, _values)
526
+ def _reduce_53(val, _values)
522
527
  s(:float, val[0])
523
528
  end
524
529
 
525
- def _reduce_53(val, _values)
530
+ def _reduce_54(val, _values)
526
531
  s(:var, val[0])
527
532
  end
528
533
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-13 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: racc
@@ -168,6 +168,7 @@ files:
168
168
  - ext/ragel/base_lexer.rl
169
169
  - lib/oga.rb
170
170
  - lib/oga/html/parser.rb
171
+ - lib/oga/html/sax_parser.rb
171
172
  - lib/oga/oga.rb
172
173
  - lib/oga/version.rb
173
174
  - lib/oga/xml/attribute.rb
@@ -177,6 +178,7 @@ files:
177
178
  - lib/oga/xml/doctype.rb
178
179
  - lib/oga/xml/document.rb
179
180
  - lib/oga/xml/element.rb
181
+ - lib/oga/xml/html_void_elements.rb
180
182
  - lib/oga/xml/lexer.rb
181
183
  - lib/oga/xml/namespace.rb
182
184
  - lib/oga/xml/node.rb
@@ -185,6 +187,7 @@ files:
185
187
  - lib/oga/xml/processing_instruction.rb
186
188
  - lib/oga/xml/pull_parser.rb
187
189
  - lib/oga/xml/querying.rb
190
+ - lib/oga/xml/sax_parser.rb
188
191
  - lib/oga/xml/text.rb
189
192
  - lib/oga/xml/traversal.rb
190
193
  - lib/oga/xml/xml_declaration.rb