xia_1.4.1_b3cee557/src/mckae-xml-xpath-dfs_processing.adb

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
-------------------------------------------------------------------------------
--                                                                           --
--     XPATH IN ADA Copyright (C) 2021, Simon Wright <simon@pushface.org>    --
--                                                                           --
--  XPath in  Ada (XIA) is  free software;  you can redistribute  it and/or  --
--  modify it under terms of the GNU General Public License as published by  --
--  the Free Software Foundation; either version 3, or (at your option) any  --
--  later version.  GNAT is distributed in the hope that it will be useful,  --
--  but  WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of  --
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     --
--                                                                           --
--  As  a special  exception under  Section  7 of  GPL version  3, you  are  --
--  granted  additional permissions  described in  the GCC  Runtime Library  --
--  Exception, version 3.1, as published by the Free Software Foundation.    --
--                                                                           --
--  You should have received a copy of the GNU General Public License and a  --
--  copy of the GCC Runtime Library  Exception along with this program; see  --
--  the  files  COPYING3 and  COPYING.RUNTIME  respectively.   If not,  see  --
--  <http://www.gnu.org/licenses/>.                                          --
--                                                                           --
--  XIA is maintained at https://github.com/simonjwright/xia                 --
--                                                                           --
-------------------------------------------------------------------------------

with Xpath_Model;
with Xpath_Visitor_Interface;

with McKae.XML.XPath.Expressions; use McKae.XML.XPath.Expressions;
with Mckae.XML.XPath.Locations; use Mckae.XML.Xpath.Locations;
with Mckae.XML.XPath.Predicates; use Mckae.XML.XPath.Predicates;

with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Tags;

with Ada.Text_IO;

package body McKae.XML.XPath.DFS_Processing is

   function "+" (S : String) return Unbounded_String
                renames To_Unbounded_String;

   function "-" (U : Unbounded_String) return String
                 renames To_String;

   function Get_Axis (This : Axis_Name_Nonterminal'Class)
                     return Axes is
      use Ada.Tags;
   begin
      return
        (if This'Tag = Axis_Name_Nonterminal1'Tag then
             Ancestor_Axis
          elsif This'Tag = Axis_Name_Nonterminal2'Tag then
             Ancestor_Or_Self_Axis
          elsif This'Tag = Axis_Name_Nonterminal3'Tag then
             Attribute_Axis
          elsif This'Tag = Axis_Name_Nonterminal4'Tag then
             Child_Axis
          elsif This'Tag = Axis_Name_Nonterminal5'Tag then
             Descendant_Axis
          elsif This'Tag = Axis_Name_Nonterminal6'Tag then
             Descendant_Or_Self_Axis
          elsif This'Tag = Axis_Name_Nonterminal7'Tag then
             Following_Axis
          elsif This'Tag = Axis_Name_Nonterminal8'Tag then
             Following_Sibling_Axis
          elsif This'Tag = Axis_Name_Nonterminal9'Tag then
             Namespace_Axis
          elsif This'Tag = Axis_Name_Nonterminal10'Tag then
             Parent_Axis
          elsif This'Tag = Axis_Name_Nonterminal11'Tag then
             Preceding_Axis
          elsif This'Tag = Axis_Name_Nonterminal12'Tag then
             Preceding_Sibling_Axis
          elsif This'Tag = Axis_Name_Nonterminal13'Tag then
             Self_Axis
          else
             raise  Constraint_Error
               with Expanded_Name (This'Tag) & " not an Axis tag");
   end Get_Axis;

   function Get_Axis_Name (This : Axis_Name_Nonterminal'Class)
                          return Unbounded_String
   is
      use Ada.Tags;
   begin
      return
        +(if This'Tag = Axis_Name_Nonterminal1'Tag then
             Axis_Name_Nonterminal1 (This).Ancestor_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal2'Tag then
             Axis_Name_Nonterminal2 (This).Ancestor_Or_Self_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal3'Tag then
             Axis_Name_Nonterminal3 (This).Attribute_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal4'Tag then
             Axis_Name_Nonterminal4 (This).Child_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal5'Tag then
             Axis_Name_Nonterminal5 (This).Descendant_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal6'Tag then
             Axis_Name_Nonterminal6 (This).Descendant_Or_Self_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal7'Tag then
             Axis_Name_Nonterminal7 (This).Following_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal8'Tag then
             Axis_Name_Nonterminal8 (This).Following_Sibling_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal9'Tag then
             Axis_Name_Nonterminal9 (This).Namespace_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal10'Tag then
             Axis_Name_Nonterminal10 (This).Parent_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal11'Tag then
             Axis_Name_Nonterminal11 (This).Preceding_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal12'Tag then
             Axis_Name_Nonterminal12 (This).Preceding_Sibling_Part.Token_String.all
          elsif This'Tag = Axis_Name_Nonterminal13'Tag then
             Axis_Name_Nonterminal13 (This).Self_Part.Token_String.all
          else
             raise  Constraint_Error
               with Expanded_Name (This'Tag) & " not an Axis tag");
   end Get_Axis_Name;

   function Get_Node_Type_Name (This : Node_Type_Nonterminal'Class)
                               return Unbounded_String
   is
      use Ada.Tags;
   begin
      return
        +(if This'Tag = Node_Type_Nonterminal1'Tag then
             Node_Type_Nonterminal1 (This).Comment_Part.Token_String.all
          elsif This'Tag = Node_Type_Nonterminal2'Tag then
             Node_Type_Nonterminal2 (This).Text_Part.Token_String.all
          elsif This'Tag = Node_Type_Nonterminal3'Tag then
             Node_Type_Nonterminal3 (This).Processing_Instruction_Part.Token_String.all
          elsif This'Tag = Node_Type_Nonterminal4'Tag then
             Node_Type_Nonterminal4 (This).Node_Part.Token_String.all
          else
             raise  Constraint_Error
               with Expanded_Name (This'Tag) & " not a Node_Type tag");
   end Get_Node_Type_Name;

   function Get_Node_Type_Test (This : Node_Type_Nonterminal'Class)
                               return Specifiable_Node_Tests
   is
      use Ada.Tags;
   begin
      return
        (if This'Tag = Node_Type_Nonterminal1'Tag then
             Comment_Node_Test
          elsif This'Tag = Node_Type_Nonterminal2'Tag then
             Text_Node_Test
          elsif This'Tag = Node_Type_Nonterminal3'Tag then
             Processing_Instruction_Node_Test
          elsif This'Tag = Node_Type_Nonterminal4'Tag then
             Node_Node_Test
          else
             raise  Program_Error
               with Expanded_Name (This'Tag) & " not acceptable here");
   end Get_Node_Type_Test;

   function Get_Literal (This : Literal_Nonterminal'Class)
                        return Unbounded_String is
      use Ada.Tags;
      Quoted : constant String :=
        (if This'Tag = Literal_Nonterminal1'Tag then
            Literal_Nonterminal1(This).DQ_Literal_Part.Token_String.all
         elsif This'Tag = Literal_Nonterminal2'Tag then
            Literal_Nonterminal2(This).SQ_Literal_Part.Token_String.all
         else
            raise  Constraint_Error
              with Expanded_Name (This'Tag) & " not a Literal tag");
   begin
      return
        +(Quoted (Quoted'First + 1 .. Quoted'Last - 1));
   end Get_Literal;

   Star : constant Unbounded_String := To_Unbounded_String("*");

   -- Location step under construction
   subtype Restricted_Location_Steps
     is Location_Steps
   with Predicate =>
     Restricted_Location_Steps.Location_Predicates.Is_Empty;
   Location_Step : Restricted_Location_Steps;

   Empty_Location_Step : constant Location_Steps := (others => <>);

   procedure Reset is
   begin
      Predicates.Release (Location_Step.Location_Predicates);
      Location_Step := Empty_Location_Step;
      pragma Debug (Ada.Text_IO.Put_Line ("resetting"));
   end Reset;

   procedure Visit_Parseable_Token
     (I : access DFS;
      T : access xpath_Model.Parseable_Token'Class) is
   begin
      null;
   end Visit_Parseable_Token;

   procedure After_Literal_Nonterminal1
     (I : access DFS;
      T : access Literal_Nonterminal1'Class) is
   begin
      null;
   end After_Literal_Nonterminal1;

   procedure After_Literal_Nonterminal2
     (I : access DFS;
      T : access Literal_Nonterminal2'Class) is
   begin
      null;
   end After_Literal_Nonterminal2;

   procedure After_Number_Nonterminal1
     (I : access DFS;
      T : access Number_Model.Number_Nonterminal1'Class) is
   begin
      null;
   end After_Number_Nonterminal1;

   overriding procedure After_Number_Nonterminal2
     (I : access DFS;
      T : access Number_Model.Number_Nonterminal2'Class) is
   begin
      null;
   end After_Number_Nonterminal2;

   procedure After_Unary_Expr_Nonterminal1
     (I : access DFS;
      T : access Unary_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Unary_Expr_Nonterminal1;

   procedure After_Unary_Expr_Nonterminal2
     (I : access DFS;
      T : access Unary_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Unary_Expr_Nonterminal2;

   procedure After_Multiplicative_Expr_Nonterminal1
     (I : access DFS;
      T : access Multiplicative_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Multiplicative_Expr_Nonterminal1;

   procedure After_Multiplicative_Expr_Nonterminal2
     (I : access DFS;
      T : access Multiplicative_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Multiplicative_Expr_Nonterminal2;

   procedure After_Multiplicative_Expr_Nonterminal3
     (I : access DFS;
      T : access Multiplicative_Expr_Nonterminal3'Class) is
   begin
      null;
   end After_Multiplicative_Expr_Nonterminal3;

   procedure After_Multiplicative_Expr_Nonterminal4
     (I : access DFS;
      T : access Multiplicative_Expr_Nonterminal4'Class) is
   begin
      null;
   end After_Multiplicative_Expr_Nonterminal4;

   procedure After_Additive_Expr_Nonterminal1
     (I : access DFS;
      T : access Additive_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Additive_Expr_Nonterminal1;

   procedure After_Additive_Expr_Nonterminal2
     (I : access DFS;
      T : access Additive_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Additive_Expr_Nonterminal2;

   procedure After_Additive_Expr_Nonterminal3
     (I : access DFS;
      T : access Additive_Expr_Nonterminal3'Class) is
   begin
      null;
   end After_Additive_Expr_Nonterminal3;

   procedure After_Relational_Expr_Nonterminal1
     (I : access DFS;
      T : access Relational_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Relational_Expr_Nonterminal1;

   procedure After_Relational_Expr_Nonterminal2
     (I : access DFS;
      T : access Relational_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Relational_Expr_Nonterminal2;

   procedure After_Relational_Expr_Nonterminal3
     (I : access DFS;
      T : access Relational_Expr_Nonterminal3'Class) is
   begin
      null;
   end After_Relational_Expr_Nonterminal3;

   procedure After_Relational_Expr_Nonterminal4
     (I : access DFS;
      T : access Relational_Expr_Nonterminal4'Class) is
   begin
      null;
   end After_Relational_Expr_Nonterminal4;

   procedure After_Relational_Expr_Nonterminal5
     (I : access DFS;
      T : access Relational_Expr_Nonterminal5'Class) is
   begin
      null;
   end After_Relational_Expr_Nonterminal5;

   procedure After_Equality_Expr_Nonterminal1
     (I : access DFS;
      T : access Equality_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Equality_Expr_Nonterminal1;

   procedure After_Equality_Expr_Nonterminal2
     (I : access DFS;
      T : access Equality_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Equality_Expr_Nonterminal2;

   procedure After_Equality_Expr_Nonterminal3
     (I : access DFS;
      T : access Equality_Expr_Nonterminal3'Class) is
   begin
      null;
   end After_Equality_Expr_Nonterminal3;

   procedure After_And_Expr_Nonterminal1
     (I : access DFS;
      T : access And_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_And_Expr_Nonterminal1;

   procedure After_And_Expr_Nonterminal2
     (I : access DFS;
      T : access And_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_And_Expr_Nonterminal2;

   procedure After_Or_Expr_Nonterminal1
     (I : access DFS;
      T : access Or_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Or_Expr_Nonterminal1;

   procedure After_Or_Expr_Nonterminal2
     (I : access DFS;
      T : access Or_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Or_Expr_Nonterminal2;

   procedure After_Filter_Expr_Nonterminal1
     (I : access DFS;
      T : access Filter_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Filter_Expr_Nonterminal1;

   procedure After_Filter_Expr_Nonterminal2
     (I : access DFS;
      T : access Filter_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Filter_Expr_Nonterminal2;

   procedure After_Path_Expr_Nonterminal1
     (I : access DFS;
      T : access Path_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Path_Expr_Nonterminal1;

   procedure After_Path_Expr_Nonterminal2
     (I : access DFS;
      T : access Path_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Path_Expr_Nonterminal2;

   procedure After_Path_Expr_Nonterminal3
     (I : access DFS;
      T : access Path_Expr_Nonterminal3'Class) is
   begin
      null;
   end After_Path_Expr_Nonterminal3;

   procedure After_Path_Expr_Nonterminal4
     (I : access DFS;
      T : access Path_Expr_Nonterminal4'Class) is
   begin
      null;
   end After_Path_Expr_Nonterminal4;

   procedure After_Union_Expr_Nonterminal1
     (I : access DFS;
      T : access Union_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Union_Expr_Nonterminal1;

   procedure After_Union_Expr_Nonterminal2
     (I : access DFS;
      T : access Union_Expr_Nonterminal2'Class) is
   begin
      null;
   end After_Union_Expr_Nonterminal2;

   procedure After_Function_Name_Nonterminal
     (I : access DFS;
      T : access Function_Name_Nonterminal'Class) is
   begin
      null;
   end After_Function_Name_Nonterminal;

   procedure After_Argument_Nonterminal
     (I : access DFS;
      T : access Argument_Nonterminal'Class) is
   begin
      null;
   end After_Argument_Nonterminal;

   procedure After_Arguments_Nonterminal1
     (I : access DFS;
      T : access Arguments_Nonterminal1'Class) is
   begin
      null;
   end After_Arguments_Nonterminal1;

   procedure After_Arguments_Nonterminal2
     (I : access DFS;
      T : access Arguments_Nonterminal2'Class) is
   begin
      null;
   end After_Arguments_Nonterminal2;

   procedure After_Arguments_Nonterminal3
     (I : access DFS;
      T : access Arguments_Nonterminal3'Class) is
   begin
      null;
   end After_Arguments_Nonterminal3;

   procedure After_Function_Call_Nonterminal
     (I : access DFS;
      T : access Function_Call_Nonterminal'Class) is
   begin
      null;
   end After_Function_Call_Nonterminal;

   procedure After_Variable_Reference_Nonterminal
     (I : access DFS;
      T : access Variable_Reference_Nonterminal'Class) is
   begin
      null;
   end After_Variable_Reference_Nonterminal;

   procedure After_Primary_Expr_Nonterminal1
     (I : access DFS;
      T : access Primary_Expr_Nonterminal1'Class) is
   begin
      null;
   end After_Primary_Expr_Nonterminal1;

   procedure After_Primary_Expr_Nonterminal2
     (I : access DFS;
      T : access Primary_Expr_Nonterminal2'Class) is
   begin
      Add ((Axis                => Self_Axis,
            Node_Test           => (Node_Test => Expression_Node_Test,
                                    Name      => Null_Unbounded_String),
            Location_Predicates => Predicates.Null_Predicate,
            Output_Step         => False));
      Reset;
   end After_Primary_Expr_Nonterminal2;

   procedure After_Primary_Expr_Nonterminal3
     (I : access DFS;
      T : access Primary_Expr_Nonterminal3'Class) is
   begin
      null;
   end After_Primary_Expr_Nonterminal3;

   procedure After_Primary_Expr_Nonterminal4
     (I : access DFS;
      T : access Primary_Expr_Nonterminal4'Class) is
   begin
      null;
   end After_Primary_Expr_Nonterminal4;

   procedure After_Primary_Expr_Nonterminal5
     (I : access DFS;
      T : access Primary_Expr_Nonterminal5'Class) is
   begin
      null;
   end After_Primary_Expr_Nonterminal5;

   procedure After_Expr_Nonterminal
     (I : access DFS;
      T : access Expr_Nonterminal'Class) is
   begin
      null;
   end After_Expr_Nonterminal;

   --  To be called within "pragma Debug" to output the content of a
   --  Node_Test_Specification 'Object' as set in a Syntax_Rule.
   procedure Debug_Print (Syntax_Rule : String;
                          Object      : Node_Test_Specification)
   is
   begin
      Ada.Text_IO.Put_Line (Syntax_Rule & ": " & Image (Object));
   end Debug_Print;

   procedure After_Abbreviated_Step_Nonterminal1
     (I : access DFS;
      T : access Abbreviated_Step_Nonterminal1'Class) is
   begin
      Location_Step := (Axis                => Self_Axis,
                        Node_Test           => (Node_Test => Node_Node_Test,
                                                Name      => Star),
                        Location_Predicates => Predicates.Null_Predicate,
                        Output_Step         => False);
      pragma Debug
        (Debug_Print
           ("Abbreviated_Step_Nonterminal1", Location_Step.Node_Test));
   end After_Abbreviated_Step_Nonterminal1;

   procedure After_Abbreviated_Step_Nonterminal2
     (I : access DFS;
      T : access Abbreviated_Step_Nonterminal2'Class) is
   begin
      Location_Step := (Axis                => Parent_Axis,
                        Node_Test           => (Node_Test => Node_Node_Test,
                                                Name      => Star),
                        Location_Predicates => Predicates.Null_Predicate,
                        Output_Step         => False);
      pragma Debug
        (Debug_Print
           ("Abbreviated_Step_Nonterminal2", Location_Step.Node_Test));
   end After_Abbreviated_Step_Nonterminal2;

   procedure After_Abbreviated_Relative_Location_Path_Nonterminal
     (I : access DFS;
      T : access Abbreviated_Relative_Location_Path_Nonterminal'Class) is
   begin
      --  The rule is Relative_Location_Path Double_Slash Step
      null;
   end After_Abbreviated_Relative_Location_Path_Nonterminal;

   procedure After_Abbreviated_Absolute_Location_Path_Nonterminal
     (I : access DFS;
      T : access Abbreviated_Absolute_Location_Path_Nonterminal'Class) is
   begin
      --  The rule is Double_Slash Relative_Location_Path
      null;
   end After_Abbreviated_Absolute_Location_Path_Nonterminal;

   procedure After_Double_Slash_nonterminal
     (I : access DFS;
      T : access Double_Slash_Nonterminal'Class) is
   begin
      Add ((Axis                => Descendant_Or_Self_Axis,
            Node_Test           => (Node_Test => Node_Node_Test,
                                    Name      => Star),
            Location_Predicates => Predicates.Null_Predicate,
            Output_Step         => False));
      Reset;
   end After_Double_Slash_nonterminal;

   procedure After_Predicate_Expr_Nonterminal
     (I : access DFS;
      T : access Predicate_Expr_Nonterminal'Class) is
   begin
      Add_Predicate (T.Expr_Part);
   end After_Predicate_Expr_Nonterminal;

   procedure After_NCNAME_Or_ID_Nonterminal1
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal1'Class) is
   begin
      Location_Step.Node_Test :=
        (Node_Test => NCName_Node_Test,
         Name      => +T.NCName_Part.Token_String.all);
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID_Nonterminal1", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal1;

   procedure After_NCNAME_Or_ID_Nonterminal2
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal2'Class) is
   begin
      Location_Step.Node_Test :=
        (Node_Test => NCName_Node_Test,
         Name      => Get_Axis_Name (T.Axis_Name_Part.all));
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID_Nonterminal2", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal2;

   procedure After_NCNAME_Or_ID_Nonterminal3
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal3'Class) is
   begin
      --  The rule is Node_Type; included here because it's not to be
      --  recognused as a token in this context (spec para 3.7).
      Location_Step.Node_Test :=
        (Node_Test => NCName_Node_Test,
         Name      => Get_Node_Type_Name (T.Node_Type_Part.all));
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID_Nonterminal3", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal3;

   procedure After_NCNAME_Or_ID_Nonterminal4
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal4'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => NCName_Node_Test,
                                  Name      => +T.And_Part.Token_String.all);
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID_Nonterminal4", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal4;

   procedure After_NCNAME_Or_ID_Nonterminal5
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal5'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => NCName_Node_Test,
                                  Name      => +T.Or_Part.Token_String.all);
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID_Nonterminal5", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal5;

   procedure After_NCNAME_Or_ID_Nonterminal6
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal6'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => NCName_Node_Test,
                                  Name      => +T.Mod_Part.Token_String.all);
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal6;

   procedure After_NCNAME_Or_ID_Nonterminal7
     (I : access DFS;
      T : access NCNAME_Or_ID_Nonterminal7'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => NCName_Node_Test,
                                  Name      => +T.Div_Part.Token_String.all);
      pragma Debug
        (Debug_Print ("NCNAME_Or_ID_Nonterminal7", Location_Step.Node_Test));
   end After_NCNAME_Or_ID_Nonterminal7;

   procedure After_QName_Nonterminal1
     (I : access DFS;
      T : access QName_Nonterminal1'Class) is
   begin
      --  Rule is NCNAME_Or_ID
      null;
   end After_QName_Nonterminal1;

   procedure After_QName_Nonterminal2
     (I : access DFS;
      T : access QName_Nonterminal2'Class) is
   begin
      --  Rule is NCNAME_Or_ID COLON NCNAME_Or_ID
      Location_Step.Node_Test :=
        (Node_Test => QName_Node_Test,
         Name      => +NCNAME_Or_ID_Nonterminal1
           (T.NCName_Or_ID_Part2.all).NCName_Part.Token_String.all,
         Prefix    => +NCNAME_Or_ID_Nonterminal1
           (T.NCName_Or_ID_Part1.all).NCName_Part.Token_String.all);
      pragma Debug
        (Debug_Print ("QName_Nonterminal2", Location_Step.Node_Test));
   end After_QName_Nonterminal2;

   procedure After_Name_Test_Nonterminal1
     (I : access DFS;
      T : access Name_Test_Nonterminal1'Class) is
   begin
      --  Rule is STAR
      Location_Step :=
        (Axis                => Descendant_Or_Self_Axis,
         Node_Test           => (Node_Test => NCName_Node_Test,
                                 Name      => Star),
         Location_Predicates => Predicates.Null_Predicate,
         Output_Step         => False);
      pragma Debug
        (Debug_Print ("Name_Test_Nonterminal1", Location_Step.Node_Test));
   end After_Name_Test_Nonterminal1;

   procedure After_Name_Test_Nonterminal2
     (I : access DFS;
      T : access Name_Test_Nonterminal2'Class) is
   begin
      --  Rule is Qname
      null;
   end After_Name_Test_Nonterminal2;

   procedure After_Name_Test_Nonterminal3
     (I : access DFS;
      T : access Name_Test_Nonterminal3'Class) is
   begin
      --  Rule is NCNAME_Or_ID COLON STAR
      --  I don't understand this one! XXX
      null;
      pragma Assert (False, "Name_Test(3) not implemented");
   end After_Name_Test_Nonterminal3;

   procedure After_Node_Type_Nonterminal1
     (I : access DFS;
      T : access Node_Type_Nonterminal1'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => Comment_Node_Test,
                                  Name      => Null_Unbounded_String);
      pragma Debug
        (Debug_Print ("Node_Type_Nonterminal1", Location_Step.Node_Test));
   end After_Node_Type_Nonterminal1;

   procedure After_Node_Type_Nonterminal2
     (I : access DFS;
      T : access Node_Type_Nonterminal2'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => Text_Node_Test,
                                  Name      => Null_Unbounded_String);
      pragma Debug
        (Debug_Print ("Node_Type_Nonterminal2", Location_Step.Node_Test));
   end After_Node_Type_Nonterminal2;

   procedure After_Node_Type_Nonterminal3
     (I : access DFS;
      T : access Node_Type_Nonterminal3'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => Processing_Instruction_Node_Test,
                                  Name      => Null_Unbounded_String);
      pragma Debug
        (Debug_Print ("Node_Type_Nonterminal3", Location_Step.Node_Test));
   end After_Node_Type_Nonterminal3;

   procedure After_Node_Type_Nonterminal4
     (I : access DFS;
      T : access Node_Type_Nonterminal4'Class) is
   begin
      Location_Step.Node_Test := (Node_Test => Node_Node_Test,
                                  Name      => Null_Unbounded_String);
      pragma Debug
        (Debug_Print ("Node_Type_Nonterminal4", Location_Step.Node_Test));
   end After_Node_Type_Nonterminal4;

   procedure After_Node_Test_Nonterminal1
     (I : access DFS;
      T : access Node_Test_Nonterminal1'Class) is
   begin
      --  Rule is Name_Test
      null;
   end After_Node_Test_Nonterminal1;

   procedure After_Node_Test_Nonterminal2
     (I : access DFS;
      T : access Node_Test_Nonterminal2'Class) is
   begin
      --  Rule is Node_Type L_PAREN R_PAREN
      case Get_Node_Type_Test (T.Node_Type_Part.all) is
         when Text_Node_Test =>
            Location_Step.Node_Test :=
              (Node_Test => Text_Node_Test,
               Name      => Null_Unbounded_String);
         when Comment_Node_Test =>
            Location_Step.Node_Test :=
              (Node_Test => Comment_Node_Test,
               Name      => Null_Unbounded_String);
         when Processing_Instruction_Node_Test =>
            Location_Step.Node_Test :=
              (Node_Test => Processing_Instruction_Node_Test,
               Name      => Null_Unbounded_String);
         when Node_Node_Test =>
            Location_Step.Node_Test :=
              (Node_Test => Node_Node_Test,
               Name      => Null_Unbounded_String);
      end case;
      pragma Debug
        (Debug_Print ("Node_Test_Nonterminal2", Location_Step.Node_Test));
   end After_Node_Test_Nonterminal2;

   procedure After_Node_Test_Nonterminal3
     (I : access DFS;
      T : access Node_Test_Nonterminal3'Class) is
   begin
      --  Rule is PROCESSING_INSTRUCTION L_PAREN LITERAL R_PAREN
      Location_Step.Node_Test :=
        (Node_Test => Processing_Instruction_Node_Test,
         Name      => Get_Literal (T.Literal_Part.all));
      pragma Debug
        (Debug_Print ("Node_Test_Nonterminal3", Location_Step.Node_Test));
   end After_Node_Test_Nonterminal3;

   procedure After_Axis_Name_Nonterminal1
     (I : access DFS;
      T : access Axis_Name_Nonterminal1'Class) is
   begin
      Location_Step.Axis := Ancestor_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal1: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal1;

   procedure After_Axis_Name_Nonterminal2
     (I : access DFS;
      T : access Axis_Name_Nonterminal2'Class) is
      Location_Step : Location_Steps;
   begin
      Location_Step.Axis := Ancestor_Or_Self_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal2: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal2;

   procedure After_Axis_Name_Nonterminal3
     (I : access DFS;
      T : access Axis_Name_Nonterminal3'Class) is
   begin
      Location_Step.Axis := Attribute_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal3: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal3;

   procedure After_Axis_Name_Nonterminal4
     (I : access DFS;
      T : access Axis_Name_Nonterminal4'Class) is
   begin
      Location_Step.Axis := Child_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal4: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal4;

   procedure After_Axis_Name_Nonterminal5
     (I : access DFS;
      T : access Axis_Name_Nonterminal5'Class) is
   begin
      Location_Step.Axis := Descendant_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal5: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal5;

   procedure After_Axis_Name_Nonterminal6
     (I : access DFS;
      T : access Axis_Name_Nonterminal6'Class) is
   begin
      Location_Step.Axis := Descendant_Or_Self_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal6: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal6;

   procedure After_Axis_Name_Nonterminal7
     (I : access DFS;
      T : access Axis_Name_Nonterminal7'Class) is
   begin
      Location_Step.Axis := Following_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal7: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal7;

   procedure After_Axis_Name_Nonterminal8
     (I : access DFS;
      T : access Axis_Name_Nonterminal8'Class) is
   begin
      Location_Step.Axis := Following_Sibling_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal8: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal8;

   procedure After_Axis_Name_Nonterminal9
     (I : access DFS;
      T : access Axis_Name_Nonterminal9'Class) is
   begin
      Location_Step.Axis := Namespace_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal9: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal9;

   procedure After_Axis_Name_Nonterminal10
     (I : access DFS;
      T : access Axis_Name_Nonterminal10'Class) is
   begin
      Location_Step.Axis := Parent_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal10: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal10;

   procedure After_Axis_Name_Nonterminal11
     (I : access DFS;
      T : access Axis_Name_Nonterminal11'Class) is
   begin
      Location_Step.Axis := Preceding_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal11: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal11;

   procedure After_Axis_Name_Nonterminal12
     (I : access DFS;
      T : access Axis_Name_Nonterminal12'Class) is
   begin
      Location_Step.Axis := Preceding_Sibling_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal12: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal12;

   procedure After_Axis_Name_Nonterminal13
     (I : access DFS;
      T : access Axis_Name_Nonterminal13'Class) is
   begin
      Location_Step.Axis := Self_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Axis_Name_Nonterminal13: " & Location_Step.Axis'Image));
   end After_Axis_Name_Nonterminal13;

   procedure After_Axis_Specifier_Nonterminal
     (I : access DFS;
      T : access Axis_Specifier_Nonterminal'Class) is
   begin
      null;
   end After_Axis_Specifier_Nonterminal;

   procedure After_Predicate_Nonterminal
     (I : access DFS;
      T : access Predicate_Nonterminal'Class) is
   begin
      Predicates.Add_Predicate_Parse
        (Location_Step.Location_Predicates,
         T.Predicate_Expr_Part.Expr_Part);
   end After_Predicate_Nonterminal;

   procedure After_Abbreviated_Step_Base_Nonterminal1
     (I : access DFS;
      T : access Abbreviated_Step_Base_Nonterminal1'Class) is
   begin
      Location_Step.Axis := Child_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Abbreviated_Step_Base_Nonterminal1: " & Location_Step.Axis'Image));
   end After_Abbreviated_Step_Base_Nonterminal1;

   procedure After_Abbreviated_Step_Base_Nonterminal2
     (I : access DFS;
      T : access Abbreviated_Step_Base_Nonterminal2'Class) is
   begin
      Location_Step.Axis := Attribute_Axis;
      pragma Debug
        (Ada.Text_IO.Put_Line
           ("Abbreviated_Step_Base_Nonterminal2: " & Location_Step.Axis'Image));
   end After_Abbreviated_Step_Base_Nonterminal2;

   procedure After_Step_Base_Nonterminal1
     (I : access DFS;
      T : access Step_Base_Nonterminal1'Class) is
   begin
      --  The rule is Axis_Specifier Node_Test.
      --  The Node_Test has already added the Location_Step; we need to
      --  overwrite the Axis using the Axis_Specifier_Part.
      Location_Step.Axis :=
        Get_Axis (T.Axis_Specifier_Part.Axis_Name_Part.all);
      Add (Location_Step);
      Reset;
   end After_Step_Base_Nonterminal1;

   procedure After_Step_Base_Nonterminal2
     (I : access DFS;
      T : access Step_Base_Nonterminal2'Class) is
   begin
      --  The rule is Abbreviated_Step_Base.
      Add (Location_Step);
      Reset;
   end After_Step_Base_Nonterminal2;

   procedure After_Predicates_Nonterminal1
     (I : access DFS;
      T : access Predicates_Nonterminal1'Class) is
   begin
      --  The rule is empty.
      null;
   end After_Predicates_Nonterminal1;

   procedure After_Predicates_Nonterminal2
     (I : access DFS;
      T : access Predicates_Nonterminal2'Class) is
   begin
      --  The rule is Predicates Predicate.
      null;
   end After_Predicates_Nonterminal2;

   procedure After_L_Bracket_Nonterminal
     (I : access DFS;
      T : access L_Bracket_Nonterminal'Class) is
   begin
      Begin_Predicate;
   end After_L_Bracket_Nonterminal;

   procedure After_R_Bracket_Nonterminal
     (I : access DFS;
      T : access R_Bracket_Nonterminal'Class) is
   begin
      End_Predicate;
   end After_R_Bracket_Nonterminal;

   procedure After_Step_Nonterminal1
     (I : access DFS;
      T : access Step_Nonterminal1'Class) is
   begin
      --  The rule is Step_Base Predicates; Step_Base adds itself.
      null;
   end After_Step_Nonterminal1;

   procedure After_Step_Nonterminal2
     (I : access DFS;
      T : access Step_Nonterminal2'Class) is
   begin
      --  The rule is Abbreviated_Step.
      Add (Location_Step);
      Reset;
   end After_Step_Nonterminal2;

   procedure After_Relative_Location_Path_Nonterminal1
     (I : access DFS;
      T : access Relative_Location_Path_Nonterminal1'Class) is
   begin
      --  The rule is Step
      null;
   end After_Relative_Location_Path_Nonterminal1;

   procedure After_Relative_Location_Path_Nonterminal2
     (I : access DFS;
      T : access Relative_Location_Path_Nonterminal2'Class) is
   begin
      --  The rule is Relative_Location_Path SLASH Step
      null;
   end After_Relative_Location_Path_Nonterminal2;

   procedure After_Relative_Location_Path_Nonterminal3
     (I : access DFS;
      T : access Relative_Location_Path_Nonterminal3'Class) is
   begin
      --  The rule is Abbreviated_Relative_Location_Path
      null;
   end After_Relative_Location_Path_Nonterminal3;

   procedure After_Absolute_Location_Path_Nonterminal1
     (I : access DFS;
      T : access Absolute_Location_Path_Nonterminal1'Class) is
   begin
      --  Rule is SLASH
      Location_Step :=
        (Axis                => Self_Axis,
         Node_Test           => (Node_Test => Node_Node_Test,
                                 Name      => Null_Unbounded_String),
         Location_Predicates => Predicates.Null_Predicate,
         Output_Step         => False);
      pragma Debug
        (Debug_Print
           ("Absolute_Location_Path_Nonterminal1", Location_Step.Node_Test));
   end After_Absolute_Location_Path_Nonterminal1;

   procedure After_Absolute_Location_Path_Nonterminal2
     (I : access DFS;
      T : access Absolute_Location_Path_Nonterminal2'Class) is
   begin
      --  Rule is SLASH Relative_Location_Path
      Location_Step :=
        (Axis                => Self_Axis,
         Node_Test           => (Node_Test => Node_Node_Test,
                                 Name      => Null_Unbounded_String),
         Location_Predicates => Predicates.Null_Predicate,
         Output_Step         => False);
      pragma Debug
        (Debug_Print
           ("Absolute_Location_Path_Nonterminal2", Location_Step.Node_Test));
   end After_Absolute_Location_Path_Nonterminal2;

   procedure After_Absolute_Location_Path_Nonterminal3
     (I : access DFS;
      T : access Absolute_Location_Path_Nonterminal3'Class) is
   begin
      --  Rule is Abbreviated_Absolute_Location_Path
      null;
   end After_Absolute_Location_Path_Nonterminal3;

   procedure After_Location_Path_Nonterminal1
     (I : access DFS;
      T : access Location_Path_Nonterminal1'Class) is
   begin
      --  Rule is Relative_Location_Path
      null;
   end After_Location_Path_Nonterminal1;

   procedure After_Location_Path_Nonterminal2
     (I : access DFS;
      T : access Location_Path_Nonterminal2'Class) is
   begin
      --  Rule is Absolute_Location_Path
      null;
   end After_Location_Path_Nonterminal2;

end McKae.XML.XPath.DFS_Processing;