Lines Matching +full:master +full:- +full:level
4 Copyright (C) 2013-2022 Gary V. Vaughan
6 [](https://mit-license.org)
7 …thub.com/gvvaughan/lyaml/actions/workflows/spec.yml/badge.svg?branch=release-v6.2.8)](https://gith…
8 …gvvaughan/lyaml/coverage.svg?branch=release-v6.2.8)](https://codecov.io/github/gvvaughan/lyaml?bra…
12 and a low-level [YAML] event parser for implementing more
16 -----
18 ### High Level API
25 local t = lyaml.load (YAML-STRING, [OPTS-TABLE])
26 local yamlstr = lyaml.dump (LUA-TABLE, [OPTS-TABLE])
35 argument OPTS-TABLE.
39 --> { foo = "bar" }
42 --> { { foo = "bar" } }
45 ---
48 ---
54 --> "one"
57 --> { "one", "two" }
61 scalar values in the `implicit_scalar` field of the OPTS-TABLE argument;
66 scalar values in the `explicit_scalar` field of the OPTS-TABLE argument;
79 --> ---
80 --> foo: bar
81 --> ...
84 --> --- one
85 --> ...
86 --> --- two
87 --> ...
90 If you need to round-trip load a dumped document, and you used a custom
92 function in the `implicit_scalar` field of the OPTS-TABLE argument to
101 though it is straight forward to wrap the low level APIs to use `nil`,
105 ### Low Level APIs
123 local iter = require ("yaml").scanner (YAML-STRING)
126 -- process token table
131 a table describing the next token of YAML-STRING. See LibYAML's
140 local iter = require ("yaml").parser (YAML-STRING)
143 -- process event table
153 [Lua] is left as an exercise for the reader -- though, unlike the
154 high-level API, `lyaml.parser` exposes all details of the input
159 ------------
165 luarocks --server=http://rocks.moonscript.org install lyaml
169 luarocks make lyaml-?-1.rockspec
171 To install current git master from [GitHub][lyaml] (for testing):
173 luarocks install http://raw.github.com/gvvaughan/lyaml/master/lyaml-git-1.rockspec
180 build-aux/luke LYAML_DIR=LIBYAML-INSTALL-PREFIX
181 sudo build-aux/luke PREFIX=LYAML-INSTALL-PREFIX install
182 specl -v1freport spec/*_spec.yaml
190 ----------------------------------
198 someone else, and that it is not already fixed by [master][lyaml] in
200 to temporarily install master with [LuaRocks][]).
208 1. 3-character indentation using SPACES in Lua sources: It makes rogue
211 2. Simple strings are easiest to type using single-quote delimiters,
212 saving double-quotes for where a string contains apostrophes.
221 issues with monkey-patching in caller environment.
229 [L15]: http://github.com/gvvaughan/lyaml/blob/master/lyaml-git-1.rockspec#L15