equal
deleted
inserted
replaced
68 export_code %quote empty dequeue enqueue in SML |
68 export_code %quote empty dequeue enqueue in SML |
69 module_name Example file "examples/example.ML" |
69 module_name Example file "examples/example.ML" |
70 |
70 |
71 text {* \noindent resulting in the following code: *} |
71 text {* \noindent resulting in the following code: *} |
72 |
72 |
73 text %quote %typewriter {* |
73 text %quotetypewriter {* |
74 @{code_stmts empty enqueue dequeue (SML)} |
74 @{code_stmts empty enqueue dequeue (SML)} |
75 *} |
75 *} |
76 |
76 |
77 text {* |
77 text {* |
78 \noindent The @{command_def export_code} command takes a |
78 \noindent The @{command_def export_code} command takes a |
91 |
91 |
92 text {* |
92 text {* |
93 \noindent This is the corresponding code: |
93 \noindent This is the corresponding code: |
94 *} |
94 *} |
95 |
95 |
96 text %quote %typewriter {* |
96 text %quotetypewriter {* |
97 @{code_stmts empty enqueue dequeue (Haskell)} |
97 @{code_stmts empty enqueue dequeue (Haskell)} |
98 *} |
98 *} |
99 |
99 |
100 text {* |
100 text {* |
101 \noindent For more details about @{command export_code} see |
101 \noindent For more details about @{command export_code} see |
166 text {* |
166 text {* |
167 \noindent The corresponding code in Haskell uses that language's |
167 \noindent The corresponding code in Haskell uses that language's |
168 native classes: |
168 native classes: |
169 *} |
169 *} |
170 |
170 |
171 text %quote %typewriter {* |
171 text %quotetypewriter {* |
172 @{code_stmts bexp (Haskell)} |
172 @{code_stmts bexp (Haskell)} |
173 *} |
173 *} |
174 |
174 |
175 text {* |
175 text {* |
176 \noindent This is a convenient place to show how explicit dictionary |
176 \noindent This is a convenient place to show how explicit dictionary |
177 construction manifests in generated code -- the same example in |
177 construction manifests in generated code -- the same example in |
178 @{text SML}: |
178 @{text SML}: |
179 *} |
179 *} |
180 |
180 |
181 text %quote %typewriter {* |
181 text %quotetypewriter {* |
182 @{code_stmts bexp (SML)} |
182 @{code_stmts bexp (SML)} |
183 *} |
183 *} |
184 |
184 |
185 text {* |
185 text {* |
186 \noindent Note the parameters with trailing underscore (@{verbatim |
186 \noindent Note the parameters with trailing underscore (@{verbatim |