package parser import ( "regexp" "strings" "github.com/CarGDev/strata-compile/internal/ast" ) // StrataParser parses .strata files type StrataParser struct { source string pos int template *ast.TemplateNode script *ast.ScriptNode style *ast.StyleNode } // NewStrataParser creates a new parser func NewStrataParser(source string) *StrataParser { return &StrataParser{ source: source, pos: 0, } } // Parse parses a .strata file into AST nodes func (p *StrataParser) Parse() (*ast.StrataFile, error) { file := &ast.StrataFile{} // Extract