Skip to main content

Module parse

Module parse 

Source
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:

  1. L0 block splitting ([blocks]) — the shared SFC container scan yields <script> / <style> blocks and the <art> custom block as L0 SourceBlock frames over the authored file.
  2. 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.