plotnik-compiler 0.3.2

Compiler for Plotnik query language (parser, analyzer, bytecode emitter)
Documentation
---
source: crates/plotnik-compiler/src/emit/emit_tests.rs
---
Test = (identifier)+ @items
---
[strings]
S0 "Beauty will save the world"
S1 "items"
S2 "Test"
S3 "identifier"

[type_defs]
T0 = <Node>
T1 = ArrayPlus(T0)  ; <Node>+
T2 = Struct  M0:1  ; { items }

[type_members]
M0: S1 → T1  ; items: T1

[type_names]
N0: S2 → T2  ; Test

[entrypoints]
Test = 06 :: T2

[transitions]
_ObjWrap:
  00   ε   [Obj]                            02
  02       Trampoline                       03
  03   ε   [EndObj]                         05
  05                                        ▶

Test:
  06   !   [Arr] _                          11, 13
  08                                        ▶
  09   ε   [EndArr Set(M0)]                 08
  11   !   (identifier) [Node Push]         18, 09
  13   ▷   _                                11, 13
  15  ...  
  16   ▷   _                                11, 16, 09
  18   ▷   _                                11, 16, 09