Lexel Module
Lexel (Lexical Engine) Parses the lexical analysis and tokenization of Hywe syntax.
Types
| Type | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Functions and values
| Function or value |
Description
|
Full Usage:
extractSequences input
Parameters:
string
-
Full multi-level Hywe string.
Returns: Map<int, string>
Map from level index (0-based) to sequence name (e.g. 0 -> "VRCWEE").
|
Extracts a level index to traversal sequence string mapping from a full Hywe string.
Example
val sqnMap: obj
|
Full Usage:
injectSqn input lvl sqn
Parameters:
string
-
Full Hywe specification string.
lvl : int
-
Zero-based level index to modify.
sqn : string
-
New traversal sequence string (e.g. "HRCWNN").
Returns: string
Modified specification string with updated Q= sequence parameter.
|
Injects or updates a specific level's sequence (Q=) within a full Hywe string. Supports both level (L#) and nest (N#) markers.
Example
val updatedSpec: obj
|
Full Usage:
parseAttributes block
Parameters:
string
-
Raw string of the attribute block, e.g. "(Q=VRCWEE/L=0/W=20/H=30)".
Returns: LexelAttributes
A populated LexelAttributes record.
|
Processes a Hywe attribute block into a structured record. Handles Sequence (Q), Level (L), Base (B), Scale (X), Entry (E), OuterBoundary (O), Islands (I), Thickness (T), Width (W), and Height (H).
Example
val attrs: obj
|
Full Usage:
parseNodes markerPrefix blocks
Parameters:
string
-
Prefix marker (e.g. "L0" or "N1") prepended to generated node IDs.
blocks : string list
-
List of node block strings, e.g. ["(1/25/Living)"; "(1.1/12/Dining)"].
Returns: LexelNode list list
A list of node groups forming the hierarchical spatial tree.
|
Processes Hywe node blocks and organizes them into a hierarchical tree. Handles (ID/Area/Label/Extrusion/B=Base) format and dot-notation grouping.
Example
val blocks: string list
val tree: obj
|
Full Usage:
processFullString input
Parameters:
string
-
Full multi-level Hywe string.
Returns: LexelBlock list
List of parsed LexelBlock items (Level or Nest).
|
Processes a full multi-marker Hywe specification string, splitting into individual level (L#) and nest (N#) segments.
Example
val spec: string
val blocks: obj
|
Full Usage:
processXyxel markerPrefix input
Parameters:
string
-
Level or nest marker prefix (e.g. "L0").
input : string
-
Raw segment input containing parenthesis-delimited blocks.
Returns: (type) option
Option containing the parsed Attributes and Tree.
|
Unified entry point for parsing and processing a single Xyxel segment containing attributes and node blocks.
Example
val segment: obj
|
Active patterns
| Active pattern |
Description
|
Full Usage:
(|Float|_|) s
Parameters:
string
Returns: float option
|
|
Full Usage:
(|Int|_|) s
Parameters:
string
Returns: int option
|
|
Hywe