···11-open StringTermJudgment
22-33-module StringSymbolView: SExpViewFunc.SYMBOL_VIEW with module Symbol := StringSymbol = {
44- type props = {name: StringSymbol.t, scope: array<string>}
11+module StringSymbolView: SExpViewFunc.SYMBOL_VIEW
22+ with module Symbol := StringTermJudgment.StringSymbol = {
33+ type props = {name: StringTermJudgment.StringSymbol.t, scope: array<string>}
54 let make = ({name, scope}: props) =>
65 switch name {
77- | StringS(term) => <StringTermView term scope />
88- | ConstS(name) => <SExpView.ConstSymbolView name scope />
66+ | StringTermJudgment.StringS(term) => <StringTermView term scope />
77+ | StringTermJudgment.ConstS(name) => <SExpView.ConstSymbolView name scope />
98 }
109}
11101212-module TermView = StringTermView
1313-include SExpViewFunc.Make(
1111+module View = SExpViewFunc.Make(
1412 StringTermJudgment.StringSymbol,
1513 StringSymbolView,
1614 StringTermJudgment.StringSExp,
1715)
1616+1717+module TermView = View
1818+type props = {
1919+ judgment: StringTermJudgment.StringSExp.t,
2020+ scope: array<string>,
2121+}
2222+let make = ({judgment, scope}) => View.make({term: judgment, scope})
+1-1
src/StringTermJView.resi
···11include Signatures.JUDGMENT_VIEW
22 with module Term := StringTermJudgment.StringSExp
33- and module Judgment := StringTermJudgment
33+ and module Judgment := StringTermJudgment.StringSExpJ
···22module StringSymbol: SExpFunc.SYMBOL with type t = stringSymbol
3344module StringSExp: module type of SExpFunc.Make(StringSymbol)
55-type t = StringSExp.t
55+module StringSExpJ: module type of TermAsJudgment.Make(StringSExp)
66+type t = StringSExpJ.t
77+let constSymbol: string => StringSExp.t
6879include Signatures.JUDGMENT with module Term := StringSExp and type t := t