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 = ArrayStar(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   ε                                    24, 17
  12   !   (identifier) [Node Push]         14
  14   ε                                    30, 17
  16                                        ▶
  17   ε   [EndArr Set(M0)]                 16
  19   ▷   _                                22
  20   ε                                    19, 17
  22   ε                                    12, 20
  24   !   _                                22
  25   ▷   _                                28
  26   ε                                    25, 17
  28   ε                                    12, 26
  30   ▷   _                                28