X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fxpath%2Fcompile.ml;h=c52c720900a492d6cc462432b54ee6eb7c94ee62;hp=0038506ab24873e1d3c487960ceb22e7dc408775;hb=41dd1fed04cabad212f10fce3484545f6e9d9444;hpb=09058e990c86555c9c9211f00639901bbd386730 diff --git a/src/xpath/compile.ml b/src/xpath/compile.ml index 0038506..c52c720 100644 --- a/src/xpath/compile.ml +++ b/src/xpath/compile.ml @@ -13,13 +13,7 @@ (* *) (***********************************************************************) -(* - Time-stamp: -*) - open Ast -open Auto -open Utils let ( => ) a b = (a, b) @@ -48,7 +42,7 @@ let root_set = QNameSet.singleton QName.document let compile_axis_test axis (test,kind) phi trans states = let q = State.make () in let phi = match kind with - Tree.Common.NodeKind.Node -> phi + Tree.NodeKind.Node -> phi | _ -> phi %% F.mk_kind kind in let phi', trans', states' = @@ -145,7 +139,7 @@ and compile_single_path p trans states = match p with | Absolute steps -> (Ancestor false, (QNameSet.singleton QName.document, - Tree.Common.NodeKind.Node), []) + Tree.NodeKind.Node), []) :: steps | Relative steps -> steps in @@ -181,7 +175,7 @@ let compile_top_level_step_list l trans states = | (axis, (test,kind), elist) :: ll -> let phi0, trans0, states0 = compile_axis_test (invert_axis axis) - (QNameSet.any, Tree.Common.NodeKind.Node) + (QNameSet.any, Tree.NodeKind.Node) phi_above trans states in (* Only select attribute nodes if the previous axis @@ -219,7 +213,7 @@ let compile_top_level_step_list l trans states = let phi0, trans0, states0 = compile_axis_test Self - (QNameSet.singleton QName.document, Tree.Common.NodeKind.Node) + (QNameSet.singleton QName.document, Tree.NodeKind.Node) Ata.SFormula.true_ trans states