···11+type stringSymbol = StringS(StringTerm.t) | ConstS(SExp.ConstSymbol.t)
22+module StringSymbol: SExpFunc.SYMBOL with type t = stringSymbol
33+44+include module type of SExpFunc.Make(StringSymbol)
+6-11
src/StringTermJView.res
···11-module StringSymbolView: SExpViewFunc.SYMBOL_VIEW
22- with module Symbol := StringTermJudgment.StringSymbol = {
33- type props = {name: StringTermJudgment.StringSymbol.t, scope: array<string>}
11+module StringSymbolView: SExpViewFunc.SYMBOL_VIEW with module Symbol := StringSExp.StringSymbol = {
22+ type props = {name: StringSExp.StringSymbol.t, scope: array<string>}
43 let make = ({name, scope}: props) =>
54 switch name {
66- | StringTermJudgment.StringS(term) => <StringTermView term scope />
77- | StringTermJudgment.ConstS(name) => <SExpView.ConstSymbolView name scope />
55+ | StringSExp.StringS(term) => <StringTermView term scope />
66+ | StringSExp.ConstS(name) => <SExpView.ConstSymbolView name scope />
87 }
98}
1091111-module View = SExpViewFunc.Make(
1212- StringTermJudgment.StringSymbol,
1313- StringSymbolView,
1414- StringTermJudgment.StringSExp,
1515-)
1010+module View = SExpViewFunc.Make(StringSExp.StringSymbol, StringSymbolView, StringSExp)
16111712module TermView = View
1813type props = {
1919- judgment: StringTermJudgment.StringSExp.t,
1414+ judgment: StringSExp.t,
2015 scope: array<string>,
2116}
2217let make = ({judgment, scope}) => View.make({term: judgment, scope})
+2-2
src/StringTermJView.resi
···11include Signatures.JUDGMENT_VIEW
22- with module Term := StringTermJudgment.StringSExp
33- and module Judgment := StringTermJudgment.StringSExpJ
22+ with module Term := StringSExp
33+ and module Judgment := TermAsJudgment.StringSExpJ
···11-type stringSymbol = StringS(StringTerm.t) | ConstS(SExp.ConstSymbol.t)
22-module StringSymbol: SExpFunc.SYMBOL with type t = stringSymbol
33-44-module StringSExp: module type of SExpFunc.Make(StringSymbol)
55-module StringSExpJ: module type of TermAsJudgment.Make(StringSExp)
66-type t = StringSExpJ.t
77-let constSymbol: string => StringSExp.t
88-99-include Signatures.JUDGMENT with module Term := StringSExp and type t := t