@@ -81,21 +81,17 @@ Quasiquotation
82Since names are used frequently in elaborator reflection there is a shortcut for constructing them:
82Since names are used frequently in elaborator reflection there is a shortcut for constructing them:
84−.. list-table:: Quasiquotation
84+.. list-table::
86 * - An unresolved variable "x" is wrapped in backtick and double braces:
86 * - An unresolved variable "x" is wrapped in backtick and double braces:
89− .. code-block:: idris
87+ - .. code-block:: idris
91 Idris> `{{x}}
89 Idris> `{{x}}
92 UN "x" : TTName
90 UN "x" : TTName
95 * - Single braces are used for existing variables:
93 * - Single braces are used for existing variables:
98− .. code-block:: idris
94+ - .. code-block:: idris
100 Idris> `{x}
96 Idris> `{x}
101 No such variable x
97 No such variable x
@@ -105,9 +101,9 @@ Since names are used frequently in elaborator reflection there is a shortcut for
107 * - brackets are used for an expression:
103 * - brackets are used for an expression:
108− - example here type is inferable
105+ here type is inferable
110− .. code-block:: idris
106+ - .. code-block:: idris
112 Idris> :let a=2
108 Idris> :let a=2
113 Idris> `(a)
109 Idris> `(a)
@@ -115,18 +111,14 @@ Since names are used frequently in elaborator reflection there is a shortcut for
117 * - Expression with explicit type:
113 * - Expression with explicit type:
120− .. code-block:: idris
114+ - .. code-block:: idris
122 Idris> `(a:Integer)
116 Idris> `(a:Integer)
123 P Ref (UN "a") (TConst (AType (ATInt ITBig))) : TT
117 P Ref (UN "a") (TConst (AType (ATInt ITBig))) : TT
126 * - If we want the value we can escape from quasiquotation by using anti-quotation (tilde)
120 * - If we want the value we can escape from quasiquotation by using anti-quotation (tilde)
129− .. code-block:: idris
121+ - .. code-block:: idris
131 Idris> `(~a)
123 Idris> `(~a)
132 2 : Integer
124 2 : Integer