Skip to content

Instantly share code, notes, and snippets.

View cschram's full-sized avatar

Corey Schram cschram

View GitHub Profile
@cschram
cschram / otter.pest
Created December 14, 2025 04:07
Otter Pest Grammer
Module = { SOI ~ (Declaration* | EOI) }
// Indentation
// Uses the Pest stack to check indentation level
Indent = _{ PUSH(" "+ | "\t"+) }
Dedent = _{ NEWLINE ~ DROP }
CurrentIndent = _{ PEEK_ALL }
// Identifiers
TypeIdentifier = { Identifier ~ Generics? }