FPCore 2.0 grammar for tree-sitter.
-
The standard says a property value is
data(symbol | number | string | (data*)), but also notes that implementations may want to special-case properties whose values are expressions. This grammar parses the values of:pre,:specand:altas expressions. -
MAXFLOATandHUGE_VALare recognized as constants alongside the 17 in the standard, matching the reference implementation. -
The standard gives an ASCII-only regex but describes symbols as sequences of letter*, digits and punctuation; non-ASCII code points are accepted as letters, since benchmarks use symbols such as
ε.