8000 dogwood/dogwood-syntax at v1.1 · dogwood-policy/dogwood · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

dogwood-syntax

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Dogwood syntax

dogwood-syntax is the shared, source-preserving syntax layer for Dogwood (.dw) policy files. It owns the policy grammar, a lossless tokenizer, and the concrete spans needed by both the semantic parser and the formatter.

The semantic dogwood-language crate builds its AST from this grammar. The dogwood-formatter crate uses the same grammar and lossless tokens while retaining comments, strings, authored operator spelling, and whitespace.

0