plotnik-compiler 0.3.2

Compiler for Plotnik query language (parser, analyzer, bytecode emitter)
Documentation
---
source: crates/plotnik-lib/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   ε                                    08
  07  ...  
  08   ε   [Arr]                            10
  10   !   _                                19
  11   !   (identifier) [Node Push]         13
  13   ε                                    26, 16
  15                                        ▶
  16   ε   [EndArr Set(M0)]                 15
  18   ▷   _                                19
  19   ε                                    11, 18
  21   ▷   _                                24
  22   ε                                    21, 16
  24   ε                                    11, 22
  26   ▷   _                                24