#maximum show rule depth exceeded

4 messages · Page 1 of 1 (latest)

inland widget
#
#import "@preview/syntree:0.2.0": tree

= 1 Raising and Control

#let n(..args) = tree(layer-spacing: (1 + 2/3) * 1em, ..args)
#let l(part_of_speech, my_text) = n(part_of_speech, text(fill: blue, my_text))

#let C(a) = l("C", a)
#let D(a) = l("D", a)
#let N(a) = l("N", a)
#let P(a) = l("P", a)
#let T(a) = l("T", a)
#let V(a) = l("V", a)
#let Adv(a) = l("Adv", a)
#let Adj(a) = l("Adj", a)
#let VAux(a) = l("VAux", a)

#let CP(a,..b) = n("CP", a, ..b)
#let DP(..b, index: none) = n([DP#sub[#index]], ..b)
#let NP(a,..b) = n("NP", a, ..b)
#let PP(a,..b) = n("PP", a, ..b)
#let TP(a,..b) = n("TP", a, ..b)
#let VP(a,..b) = n("VP", a, ..b)
#let AdjP(a,..b) = n("AdjP", a, ..b)
#let AdvP(a,..b) = n("AdvP", a, ..b)
#let VAuxP(a,..b) = n("VAuxP", a, ..b)

#let PRO(index) = n(text(fill: blue, [`PRO`#sub[#index]]))

== 1a

Mario’s brother is likely to decide to sell the Jeep.

#CP(
  C(sym.emptyset),
  TP(
    DP(index: "i",
      DP(
        D(sym.emptyset),
        NP(
          N("Mario")
        )
      ),
      DP(
        D("'s"),
        NP(
          N("brother")
        )
      )
    ),
    TP(
      T([[`Pres`, `Nom`, `EPP`]]),
      VP(
        V("be"),
        AdjP(
          Adj("likely"),
          TP(
            DP(index: "i", $t_i$),
            TP(
              T([to\ [`EPP`]]),
              VP(
                DP(index: "i", $t_i$),
                VP(
                  V("decide"),
                  TP(
                    T([to\ [`EPP`]]),
                    VP(
                      DP(index: "i", $t_i$),
                      VP(
                        V("sell"),
                        DP("the Jeep")
                      )
                    )
                  )
                )
              )
            )
          )
        )
      )
    )
  )
)
#

Is there any way of reducing the number of show rules in my code?

#

Using typst 0.10 btw, not 0.11, since 0.11 is way too slow with syntree

#

The DP("the Jeep") is what sets it over the limit