Skip to main content
Module

x/ohm_js/src/built-in-rules.ohm

A library and language for building parsers, interpreters, compilers, etc.
Go to Latest
File
BuiltInRules {
alnum (an alpha-numeric character) = letter | digit letter (a letter) = lower | upper | unicodeLtmo digit (a digit) = "0".."9" hexDigit (a hexadecimal digit) = digit | "a".."f" | "A".."F" ListOf<elem, sep> = NonemptyListOf<elem, sep> | EmptyListOf<elem, sep> NonemptyListOf<elem, sep> = elem (sep elem)* EmptyListOf<elem, sep> = /* nothing */ listOf<elem, sep> = nonemptyListOf<elem, sep> | emptyListOf<elem, sep> nonemptyListOf<elem, sep> = elem (sep elem)* emptyListOf<elem, sep> = /* nothing */ // Allows a syntactic rule application within a lexical context. applySyntactic<app> = app}