Compiler/AST interpreter: Difference between revisions
m
→{{header|Wren}}: Minor tidy
imported>Acediast (→{{header|COBOL}}: Syntax highlighting.) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 6,822:
{{libheader|Wren-fmt}}
{{libheader|Wren-ioutil}}
<syntaxhighlight lang="
import "./fmt" for Conv
import "./ioutil" for FileUtil
var nodes = [
Line 7,077:
{{works with|Zig|0.11.0}}
To simplify memory allocation management <tt>std.heap.ArenaAllocator</tt> is used in the code below. This allows all an arena's allocations to be freed together with a single call to arena.deinit()
=={{header|Zig}}==
<syntaxhighlight lang="zig">
|