summaryrefslogtreecommitdiff
path: root/ocamldoc/odoc_text_parser.mly
diff options
context:
space:
mode:
authorMaxence Guesdon <maxence.guesdon@inria.fr>2004-05-23 10:41:51 +0000
committerMaxence Guesdon <maxence.guesdon@inria.fr>2004-05-23 10:41:51 +0000
commit617fd50c4edd650ce3fa153317d429de24141633 (patch)
tree3cce2c49bfc8ec121595b767273aab5edd6ae0b2 /ocamldoc/odoc_text_parser.mly
parente364e6c25459d37ef058accd414c5555a7b30bb6 (diff)
downloadocaml-617fd50c4edd650ce3fa153317d429de24141633.tar.gz
new ocamldoc syntax elements : {\!modules: M1 M2 ...} to insert the table of modules, {\!indexlist} to insert the list of indexes; these elements are used only in the html generator; the -intro option is now used in html to describe the whole index page
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_text_parser.mly')
-rw-r--r--ocamldoc/odoc_text_parser.mly10
1 files changed, 9 insertions, 1 deletions
diff --git a/ocamldoc/odoc_text_parser.mly b/ocamldoc/odoc_text_parser.mly
index 2abd562f74..8711ca05fb 100644
--- a/ocamldoc/odoc_text_parser.mly
+++ b/ocamldoc/odoc_text_parser.mly
@@ -60,7 +60,8 @@ let print_DEBUG s = print_string s; print_newline ()
%token ATT_REF
%token MET_REF
%token SEC_REF
-
+%token MOD_LIST_REF
+%token INDEX_LIST
%token SUPERSCRIPT
%token SUBSCRIPT
@@ -164,6 +165,13 @@ text_element:
let s3 = remove_trailing_blanks s2 in
Ref (s3, Some (RK_section []))
}
+| MOD_LIST_REF string END {
+ let s2 = remove_beginning_blanks $2 in
+ let s3 = remove_trailing_blanks s2 in
+ let l = Odoc_misc.split_with_blanks s3 in
+ Module_list l
+ }
+| INDEX_LIST { Index_list }
| VERB string END_VERB { Verbatim $2 }
| LATEX string END_LATEX { Latex $2 }
| LINK string END text END { Link ($2, $4) }