Expand description
Parser for Art files (*.art.vue), on the Davinci L0/L1 stages (P4-13).
An Art file is an SFC whose gallery definition is the <art> custom
block:
- L0 block splitting ([
blocks]) — the shared SFC container scan yields<script>/<style>blocks and the<art>custom block as L0SourceBlockframes over the authored file. - L1 tree ([
art_block]) — the<art>block parses into one lossless L1 surface tree; metadata comes from its open tag’s attribute tokens and variants are its<variant>elements ([variant]).
Every string in the descriptor is still a slice of the source (or an arena string); offsets are file-absolute through the L0 frame.
Functions§
- parse_
art - Parse an Art file (*.art.vue) into an ArtDescriptor.