@imtheaman/yaml
v1.0.4
Published
Lezer-based YAML grammar
Readme
@lezer/yaml
This is a YAML grammar for the lezer parser system.
Features
This parser supports:
- Boolean values:
true,false,True,False,TRUE,FALSE,yes,no,Yes,No,YES,NO,on,off,On,Off,ON,OFF - Null values:
null,Null,NULL,~, empty values,nil,Nil,NIL - Number types:
- Integers:
42,-17 - Hexadecimal:
0x2A - Octal:
0o52 - Binary:
0b101010 - Floating point:
3.14,-2.5,.5,10. - Scientific notation:
6.022e23,-1.5e-10 - Special float values:
.inf,-.inf,+.inf,.nan(and uppercase variants) - Base 60 (time values):
1:30,12:30:45,1:30:45.5
- Integers:
- String literals (quoted and unquoted)
- Sequences and mappings (block and flow styles)
- Anchors, aliases, and tags
- Directives and documents
Reference
- https://yaml.org/spec/1.2.2/
The initial implementation of this package was funded by Braintrust Data.
