diff options
author | 1999-11-26 09:28:05 +0000 | |
---|---|---|
committer | 1999-11-26 09:28:05 +0000 | |
commit | e52bfd221b6a28fd74a70daa92ff71c74c55ec22 (patch) | |
tree | 9144d67f50bed6df851a040a974d5a5f294c88d7 /parsing/ast.ml | |
parent | 93535ddcdbf379d7d8fe062acdb9428d1b83ec4f (diff) |
module Termast
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@149 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing/ast.ml')
-rwxr-xr-x | parsing/ast.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parsing/ast.ml b/parsing/ast.ml index cb32a8b24..7b15a0f41 100755 --- a/parsing/ast.ml +++ b/parsing/ast.ml @@ -41,6 +41,10 @@ let rec set_loc loc = function | Path(_,sl,s) -> Path(loc,sl,s) | Dynamic(_,d) -> Dynamic(loc,d) +let path_section loc sp = + let (sl,bn,pk) = repr_path sp in + Coqast.Path(loc,List.rev(string_of_id bn :: sl), string_of_kind pk) + (* raising located exceptions *) let anomaly_loc (loc,s,strm) = Stdpp.raise_with_loc loc (Anomaly (s,strm)) let user_err_loc (loc,s,strm) = Stdpp.raise_with_loc loc (UserError (s,strm)) |