Skip to content

Match version 1 parser #1

Description

@Anaminus

A version 1 mesh has, roughly, the following syntax:

unparsed    = ? any unparsed bytes ? ;
float       = ? standard floating-point number syntax (needs investigation) ? ;
digit       = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
whitespace  = { "\t" | "\n" | "\r" | " " } ;

root    = version , [ whitespace , "\n" , [ whitespace , { digit } , { vector } ] ] , unparsed ;
version = "version 1.00" | "version 1.01" ;
vector  = whitespace , "[" , whitespace , float , "," , whitespace , float , "," , whitespace , float , "]" ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions