diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2003-04-29 09:39:34 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2003-04-29 09:39:34 +0000 |
commit | 740fb556ffda7095ffe9c67fdeeb19713e80ad62 (patch) | |
tree | ba3420e69c2e5997323a8ca03ec95e90ba46275f /lib | |
parent | e870066f07eb872f5e913d9819f683bea13367cf (diff) |
Ajout is_ident_tail
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3970 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.ml | 2 | ||||
-rw-r--r-- | lib/util.mli | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml index 6d9cf16b3..fb71357ba 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -42,6 +42,8 @@ let is_letter c = let is_digit c = (c >= '0' && c <= '9') +let is_ident_tail c = is_letter c or is_digit c or c = '\'' + (* Strings *) let explode s = diff --git a/lib/util.mli b/lib/util.mli index a18608712..5dac6d30e 100644 --- a/lib/util.mli +++ b/lib/util.mli @@ -45,6 +45,7 @@ val join_loc : loc -> loc -> loc val is_letter : char -> bool val is_digit : char -> bool +val is_ident_tail : char -> bool (*s Strings. *) |