Compiler/AST interpreter: Difference between revisions

m
m (→‎{{header|Zig}}: update to Zig 0.11.0 - casting builtins renaming, fix errors from std library changes)
m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by one other user not shown)
Line 1,624:
Code by Steve Williams. Tested with GnuCOBOL 2.2.
 
<syntaxhighlight lang="cobolcobolfree"> >>SOURCE FORMAT IS FREE
identification division.
*> this code is dedicated to the public domain
Line 6,822:
{{libheader|Wren-fmt}}
{{libheader|Wren-ioutil}}
<syntaxhighlight lang="ecmascriptwren">import "./dynamic" for Enum, Struct, Tuple
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">
9,476

edits