sokoban-elements 0.2.1

Parsing and writing Sokoban, Hexoban, Trioban and Octoban file formats.
Documentation
@export
@no_skip_ws
Rle = { sections:Section }+$;

@no_skip_ws
Section = @:Chars | @:RleChunk | @:Group;

@no_skip_ws
CharsOrGroup  = @:Chars | @:Group;

@no_skip_ws
RleChunk = count:RleCount data:CharsOrGroup;

@no_skip_ws
Group = '(' { @:Section }+ ')';

@no_skip_ws
@string
Chars = { !ReservedChars body:char }+;

@no_skip_ws
@string
RleCount = { Digit }+;

@char
ReservedChars = '(' | ')' | Digit;

@char
Digit = '0'..'9';