-content.cmi:
notationUtil.cmi: notationPt.cmo
notationEnv.cmi: notationPt.cmo
notationPp.cmi: notationPt.cmo notationEnv.cmi
notationPt.cmo:
notationPt.cmx:
-content.cmo: content.cmi
-content.cmx: content.cmi
notationUtil.cmo: notationPt.cmo notationUtil.cmi
notationUtil.cmx: notationPt.cmx notationUtil.cmi
notationEnv.cmo: notationUtil.cmi notationPt.cmo notationEnv.cmi
smallLexer.mli \
cicNotationParser.mli \
box.mli \
+ content2presMatcher.mli \
termContentPres.mli \
boxPp.mli \
cicNotationPres.mli \
- content2presMatcher.mli \
$(NULL)
IMPLEMENTATION_FILES = \
$(INTERFACE_FILES:%.mli=%.ml) \
let b_object b = Object ([],b)
let b_indent = indent
let b_space = Space [None, "width", "0.5em"]
-let b_kw = b_text (RenderingAttrs.object_keyword_attributes `BoxML)
+(* let b_kw = b_text (RenderingAttrs.object_keyword_attributes `BoxML) *)
let b_toggle items = Action ([ None, "type", "toggle"], items)
let pp_attr attr =
val b_object: 'expr -> 'expr box
val b_indent: 'expr box -> 'expr box
val b_space: 'expr box
-val b_kw: string -> 'expr box
+(* val b_kw: string -> 'expr box *)
val b_toggle: 'expr box list -> 'expr box (** action which toggle among items *)
val pp_attr: attr -> string
let contains_attrs contained container =
List.for_all (fun attr -> List.mem attr container) contained
-let want_indent = contains_attrs (RenderingAttrs.indent_attributes `BoxML)
-let want_spacing = contains_attrs (RenderingAttrs.spacing_attributes `BoxML)
+let want_indent = contains_attrs (* (RenderingAttrs.indent_attributes `BoxML) *)[]
+let want_spacing = contains_attrs (* (RenderingAttrs.spacing_attributes `BoxML) *) []
let shift off = List.map (fun (start,stop,v) -> start+off,stop+off,v);;
fun _ -> s_len,[s]
let render_to_strings ~map_unicode_to_tex choose_action size markup =
+ prerr_endline ("render size is " ^ string_of_int size);
let max_size = max_int in
let rec aux_box =
function
res
else (* break needed, re-render using a Box.V *)
aux_box (Box.V (attrs, children)) size)
- | Box.V (attrs, []) -> assert false
+ | Box.V (attrs, []) -> aux_box (Box.Text (attrs,"")) (* FIXME *)
| Box.V (attrs, [child]) -> aux_box child
| Box.V (attrs, hd :: tl) ->
let indent = want_indent attrs in
| A.Sup (A.Layout (A.Sub (t1,t2)), t3)
| A.Sup (A.AttributedTerm (_,A.Layout (A.Sub (t1,t2))), t3)
-> assert false
- | A.Sub (t1, t2) -> assert false
- | A.Sup (t1, t2) -> assert false
+ | A.Sub (t1, t2) -> Box.H ([],[aux prec t1;Box.Text ([],"_");aux prec t2])
+ | A.Sup (t1, t2) -> Box.H ([],[aux prec t1;Box.Text ([],"^");aux prec t2])
| A.Below (t1, t2) -> assert false
| A.Above (t1, t2) -> assert false
| A.Frac (t1, t2)
| A.Maction alternatives ->
toggle_action (List.map invoke_reinit alternatives)
| A.Group terms -> assert false
- | A.Break -> assert false
+ | A.Break -> Box.Space []
in
aux prec
| Ast.AttributedTerm (a, t) -> Ast.AttributedTerm (a, remove_level_info t)
| t -> t
-let add_xml_attrs attrs t =
- if attrs = [] then t else Ast.AttributedTerm (`XmlAttrs attrs, t)
+let add_xml_attrs attrs t = t
+(* if attrs = [] then t else Ast.AttributedTerm (`XmlAttrs attrs, t) *)
-let add_keyword_attrs =
- add_xml_attrs (RenderingAttrs.keyword_attributes `MathML)
+let add_keyword_attrs t = t
+(* add_xml_attrs (RenderingAttrs.keyword_attributes `MathML) *)
let box kind spacing indent content =
Ast.Layout (Ast.Box ((kind, spacing, indent), content))
let keyword k = add_keyword_attrs (Ast.Literal (`Keyword k))
let number s =
- add_xml_attrs (RenderingAttrs.number_attributes `MathML)
+ add_xml_attrs (* (RenderingAttrs.number_attributes `MathML) *) ()
(Ast.Literal (`Number s))
let ident i =
- add_xml_attrs (RenderingAttrs.ident_attributes `MathML)
+ add_xml_attrs (* (RenderingAttrs.ident_attributes `MathML) *) ()
(Ast.Ident (i,`Ambiguous))
let ident_w_href href i =
add_xml_attrs [Some "xlink", "href", href] (ident i)
let binder_symbol s =
- add_xml_attrs (RenderingAttrs.builtin_symbol_attributes `MathML)
+ add_xml_attrs (* (RenderingAttrs.builtin_symbol_attributes `MathML) *) ()
(builtin_symbol s)
let xml_of_sort x =
let to_string x = Ast.Ident (x, `Ambiguous) in
let identify x =
- add_xml_attrs (RenderingAttrs.keyword_attributes `MathML) (to_string x)
+ add_xml_attrs (* (RenderingAttrs.keyword_attributes `MathML) *) () (to_string x)
in
let lvl t = Ast.AttributedTerm (`Level 90,t) in
match x with
hLog.cmx: hLog.cmi
trie.cmo: trie.cmi
trie.cmx: trie.cmi
-discrimination_tree.cmo: trie.cmi discrimination_tree.cmi
-discrimination_tree.cmx: trie.cmx discrimination_tree.cmi
+discrimination_tree.cmo: trie.cmi hExtlib.cmi discrimination_tree.cmi
+discrimination_tree.cmx: trie.cmx hExtlib.cmx discrimination_tree.cmi
hTopoSort.cmo: hTopoSort.cmi
hTopoSort.cmx: hTopoSort.cmi
graphvizPp.cmo: graphvizPp.cmi
-dependenciesParser.cmi:
grafiteParser.cmi:
print_grammar.cmi: grafiteParser.cmi
-dependenciesParser.cmo: dependenciesParser.cmi
-dependenciesParser.cmx: dependenciesParser.cmi
grafiteParser.cmo: grafiteParser.cmi
grafiteParser.cmx: grafiteParser.cmi
print_grammar.cmo: print_grammar.cmi
librarian.cmx: librarian.cmi
libraryMisc.cmo: libraryMisc.cmi
libraryMisc.cmx: libraryMisc.cmi
-libraryClean.cmo: libraryMisc.cmi libraryClean.cmi
-libraryClean.cmx: libraryMisc.cmx libraryClean.cmi
+libraryClean.cmo: libraryClean.cmi
+libraryClean.cmx: libraryClean.cmi
let nmap_obj status = with_idrefs nmap_obj0 status
*)
-let nmap_obj = assert false
+let nmap_obj _ = assert false
let nmap_sequent = nmap_sequent0
NotationPt.sequent
val nmap_obj:
- #status -> NCic.obj ->
- NotationPt.term Content.cobj *
- (Content.id, NReference.reference) Hashtbl.t (* id -> reference *)
+ #status -> NCic.obj -> NotationPt.term NotationPt.obj
grafiteDisambiguate.cmi:
nnumber_notation.cmo: nnumber_notation.cmi
nnumber_notation.cmx: nnumber_notation.cmi
-disambiguateChoices.cmo: disambiguateChoices.cmi
-disambiguateChoices.cmx: disambiguateChoices.cmi
+disambiguateChoices.cmo: nnumber_notation.cmi disambiguateChoices.cmi
+disambiguateChoices.cmx: nnumber_notation.cmx disambiguateChoices.cmi
nCicDisambiguate.cmo: nCicDisambiguate.cmi
nCicDisambiguate.cmx: nCicDisambiguate.cmi
grafiteDisambiguate.cmo: nCicDisambiguate.cmi disambiguateChoices.cmi \
nCicSubstitution.cmi: nCic.cmo
nCicEnvironment.cmi: nUri.cmi nReference.cmi nCic.cmo
nCicReduction.cmi: nCic.cmo
-nCicPp.cmi: nReference.cmi nCic.cmo
nCicTypeChecker.cmi: nUri.cmi nReference.cmi nCic.cmo
nCicUntrusted.cmi: nCic.cmo
+nCicPp.cmi: nReference.cmi nCic.cmo
nCic.cmo: nUri.cmi nReference.cmi
nCic.cmx: nUri.cmx nReference.cmx
nUri.cmo: nUri.cmi
nCicEnvironment.cmo: nUri.cmi nReference.cmi nCic.cmo nCicEnvironment.cmi
nCicEnvironment.cmx: nUri.cmx nReference.cmx nCic.cmx nCicEnvironment.cmi
nCicReduction.cmo: nReference.cmi nCicUtils.cmi nCicSubstitution.cmi \
- nCicPp.cmi nCicEnvironment.cmi nCic.cmo nCicReduction.cmi
+ nCicEnvironment.cmi nCic.cmo nCicReduction.cmi
nCicReduction.cmx: nReference.cmx nCicUtils.cmx nCicSubstitution.cmx \
- nCicPp.cmx nCicEnvironment.cmx nCic.cmx nCicReduction.cmi
-nCicPp.cmo: nUri.cmi nReference.cmi nCicSubstitution.cmi nCicReduction.cmi \
- nCicEnvironment.cmi nCic.cmo nCicPp.cmi
-nCicPp.cmx: nUri.cmx nReference.cmx nCicSubstitution.cmx nCicReduction.cmx \
- nCicEnvironment.cmx nCic.cmx nCicPp.cmi
+ nCicEnvironment.cmx nCic.cmx nCicReduction.cmi
nCicTypeChecker.cmo: nUri.cmi nReference.cmi nCicUtils.cmi \
nCicSubstitution.cmi nCicReduction.cmi nCicEnvironment.cmi nCic.cmo \
nCicTypeChecker.cmi
nCicReduction.cmi nCicEnvironment.cmi nCic.cmo nCicUntrusted.cmi
nCicUntrusted.cmx: nReference.cmx nCicUtils.cmx nCicSubstitution.cmx \
nCicReduction.cmx nCicEnvironment.cmx nCic.cmx nCicUntrusted.cmi
+nCicPp.cmo: nUri.cmi nReference.cmi nCicSubstitution.cmi nCicReduction.cmi \
+ nCicEnvironment.cmi nCic.cmo nCicPp.cmi
+nCicPp.cmx: nUri.cmx nReference.cmx nCicSubstitution.cmx nCicReduction.cmx \
+ nCicEnvironment.cmx nCic.cmx nCicPp.cmi