Update upstream source from tag 'upstream/6.2.8'
Update to upstream version '6.2.8'
with Debian dir 1c6a6702c0186429df0c358ea7c2025319ee1371
Victor Seva
1 year, 6 months ago
0 | name: spec | |
1 | ||
2 | on: | |
3 | push: | |
4 | branches: [ '*' ] | |
5 | pull_request: | |
6 | branches: [ 'master' ] | |
7 | ||
8 | jobs: | |
9 | test: | |
10 | strategy: | |
11 | fail-fast: false | |
12 | matrix: | |
13 | lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"] | |
14 | ||
15 | runs-on: ubuntu-latest | |
16 | ||
17 | steps: | |
18 | - uses: actions/checkout@v2 | |
19 | ||
20 | - uses: leafo/gh-actions-lua@v8.0.0 | |
21 | with: | |
22 | luaVersion: ${{ matrix.lua-version }} | |
23 | ||
24 | - uses: leafo/gh-actions-luarocks@v4.0.0 | |
25 | ||
26 | - name: install | |
27 | run: | | |
28 | sudo apt-get install -y libyaml-dev | |
29 | luarocks install ansicolors | |
30 | luarocks install ldoc | |
31 | luarocks install luacov | |
32 | luarocks install specl | |
33 | ||
34 | - name: build | |
35 | run: | | |
36 | luarocks make --force | |
37 | ||
38 | - name: test | |
39 | run: | | |
40 | specl -vfreport --coverage spec/*_spec.yaml | |
41 | bash <(curl -s https://codecov.io/bash) -f luacov.report.out |
0 | language: python | |
1 | ||
2 | sudo: false | |
3 | ||
4 | env: | |
5 | matrix: | |
6 | - VLUA="lua=5.4" | |
7 | - VLUA="lua=5.3" | |
8 | - VLUA="lua=5.2" | |
9 | - VLUA="lua=5.1" | |
10 | - VLUA="luajit=2.1" | |
11 | - VLUA="luajit=2.0" | |
12 | ||
13 | before_install: | |
14 | - pip install hererocks | |
15 | - hererocks here --luarocks 3 --$VLUA --patch | |
16 | - export PATH=$PWD/here/bin:$PATH | |
17 | ||
18 | - hererocks tools --luajit=2.0 | |
19 | - export PATH=$PATH:$PWD/here/bin | |
20 | ||
21 | install: | |
22 | - luarocks --lua-dir=$PWD/tools --tree=$PWD/tools install ldoc | |
23 | - luarocks --lua-dir=$PWD/tools --tree=$PWD/tools install luacov | |
24 | - luarocks install ansicolors | |
25 | ||
26 | script: | |
27 | - luarocks make --force | |
28 | - luarocks install specl | |
29 | - specl -vfreport --coverage spec/*_spec.yaml | |
30 | ||
31 | after_success: | |
32 | - bash <(curl -s https://codecov.io/bash) -f luacov.report.out | |
33 | ||
34 | notifications: | |
35 | slack: aspirinc:JyWeNrIdS0J5nf2Pn2BS1cih |
3 | 3 | unless noted otherwise in the body of that file. |
4 | 4 | |
5 | 5 | ==================================================================== |
6 | Copyright (C) 2013-2020 Gary V. Vaughan | |
6 | Copyright (C) 2013-2022 Gary V. Vaughan | |
7 | 7 | |
8 | 8 | Permission is hereby granted, free of charge, to any person |
9 | 9 | obtaining a copy of this software and associated documentation |
0 | 0 | # lyaml NEWS - User visible changes |
1 | ||
2 | ## Noteworthy changes in release 6.2.8 (2022-10-22) [stable] | |
3 | ||
4 | ### Bug fixes | |
5 | ||
6 | - `luke` no longer crashes in `std.normalize` require loops | |
7 | occasionally in Lua 5.4. | |
8 | ||
9 | - lyaml emitter no longer leaks at least six bytes for every | |
10 | map, sequence and scalar emitted. | |
11 | ||
1 | 12 | |
2 | 13 | ## Noteworthy changes in release 6.2.7 (2020-11-27) [stable] |
3 | 14 |
0 | 0 | LYAML |
1 | 1 | ===== |
2 | 2 | |
3 | Copyright (C) 2013-2020 Gary V. Vaughan | |
3 | Copyright (C) 2013-2022 Gary V. Vaughan | |
4 | 4 | |
5 | 5 | [![License](https://img.shields.io/:license-mit-blue.svg)](https://mit-license.org) |
6 | [![travis-ci status](https://secure.travis-ci.org/gvvaughan/lyaml.png?branch=release-v6.2.7)](http://travis-ci.org/gvvaughan/lyaml/builds) | |
7 | [![codecov.io](https://codecov.io/github/gvvaughan/lyaml/coverage.svg?branch=release-v6.2.7)](https://codecov.io/github/gvvaughan/lyaml?branch=release-v6.2.7) | |
6 | [![workflow status](https://github.com/gvvaughan/lyaml/actions/workflows/spec.yml/badge.svg?branch=release-v6.2.8)](https://github.com/gvvaughan/lyaml/actions) | |
7 | [![codecov.io](https://codecov.io/github/gvvaughan/lyaml/coverage.svg?branch=release-v6.2.8)](https://codecov.io/github/gvvaughan/lyaml?branch=release-v6.2.8) | |
8 | 8 | |
9 | 9 | [LibYAML] binding for [Lua], with a fast C implementation |
10 | 10 | for converting between [%YAML 1.1][yaml11] and [Lua] tables, |
0 | 0 | --[[ |
1 | 1 | LYAML binding for Lua 5.1, 5.2, 5.3 & 5.4 |
2 | Copyright (C) 2013-2020 Gary V. Vaughan | |
2 | Copyright (C) 2013-2022 Gary V. Vaughan | |
3 | 3 | ]] |
4 | 4 | |
5 | 5 | title = '@package@ @version@ Reference' |
16 | 16 | end |
17 | 17 | package.preload['luke.cli']=function() |
18 | 18 | local _ENV=require'std.normalize'{'luke._base','luke.lukefile','luke.platforms','std.functional',}local function version()print[[ |
19 | luke (Luke) 0.2.1 | |
19 | luke (Luke) 0.2.3 | |
20 | 20 | Written by Gary V. Vaughan <gary@gnu.org>, 2014 |
21 | 21 | |
22 | Copyright (C) 2020, Gary V. Vaughan | |
22 | Copyright (C) 2022, Gary V. Vaughan | |
23 | 23 | Luke comes with ABSOLUTELY NO WARRANTY. |
24 | 24 | You may redistribute copies of Luke under the terms of the MIT license; |
25 | 25 | it may be used for any purpose at absolutely no cost, without permission. |
134 | 134 | end)end)L.log(found and'found '..found or prog..' not found')return found~=nil |
135 | 135 | end |
136 | 136 | local function check_header_compile(L,env,config,header,extra_hdrs)return with(CTest(),function(conftest)conftest:write(format('%s\n#include "%s"\n',extra_hdrs,header))return logspawn(L,env,compile_command(L,env,config,conftest.filename))end)end |
137 | local function check_struct_member_compile(L,env,config,structname,member,extra_hdrs)return with(CTest(),function(conftest)conftest:write(format([[ | |
138 | %s | |
139 | int main () { | |
140 | static %s aggr; | |
141 | if (sizeof aggr.%s) | |
142 | return 0; | |
143 | return 0; | |
144 | } | |
145 | ]],extra_hdrs,structname,member))return logspawn(L,env,compile_command(L,env,config,conftest.filename))end)end | |
137 | 146 | local function try_link(L,env,config,lib,symbol)return with(CTest(),TmpFile(),function(conftest,a_out)conftest:write(format([[ |
138 | 147 | /* Override any GCC internal prototype to avoid an error. |
139 | 148 | Use char because int might match the return type of a GCC |
224 | 233 | CONFIGENV.libs=lib..CONFIGENV.libs |
225 | 234 | end |
226 | 235 | return found_library(L,lib)end |
227 | end)or call(function()L.verbose'\n'fatal("required symbol '%s' not found in any of libc, lib%s",symbol,concat(libraries,', lib'))end)end},{checkfunc=function(L,env,config)checking(L,'for',config.checkfunc)return found_result(L,check_func_link(L,env,config,config.checkfunc))end}),{__call=function(self,L,env,config,prefix)return case(type(config),{['number']=function()return str(config)end,['string']=function()return config | |
236 | end)or call(function()L.verbose'\n'fatal("required symbol '%s' not found in any of libc, lib%s",symbol,concat(libraries,', lib'))end)end},{checkfunc=function(L,env,config)checking(L,'for',config.checkfunc)return found_result(L,check_func_link(L,env,config,config.checkfunc))end},{checkmember=function(L,env,config)checking(L,'for',config.checkmember)local extra_hdrs=concat(format_includes(config.includes),'\n')local i=find(config.checkmember,'%.')local structname=sub(config.checkmember,1,i-1)local member=sub(config.checkmember,i+1)return found_result(L,check_struct_member_compile(L,env,config,structname,member,extra_hdrs))end}),{__call=function(self,L,env,config,prefix)return case(type(config),{['number']=function()return str(config)end,['string']=function()return config | |
228 | 237 | end,['table']=function()return dropuntil(self,function(fname)if config[fname]~=nil then |
229 | 238 | add_external_deps(env,config,prefix)return apply(self[fname],list(L,env,config))end |
230 | 239 | end)or fatal("unable to configure with keys '%s'",concat(keys(config),"', '"))end,function(type)fatal("unsupported configure type '%s'",type)end,})end,})return{config_compiler=function(L,env)local CC=env.CC |
587 | 596 | return setmetatable({append=function(seq,v)local n=(int(seq.n)or len(seq))+1 |
588 | 597 | seq.n,seq[n]=n,v |
589 | 598 | return seq |
590 | end,arg=arg,assert=assert,char=string.char,close=io.close,concat=concat,copy=copy,dirsep=dirsep,exit=os.exit,format=string.format,getenv=os.getenv,getmetatable=getmetatable,getmetamethod=getmetamethod,gmatch=string.gmatch,gsub=string.gsub,int=int,iscallable=iscallable,len=len,lines=io.lines,list=pack,loadstring=loadstring,match=string.match,maxn=function(iterable)local n=0 | |
599 | end,arg=arg,assert=assert,char=string.char,close=io.close,concat=concat,copy=copy,dirsep=dirsep,exit=os.exit,find=string.find,format=string.format,getenv=os.getenv,getmetatable=getmetatable,getmetamethod=getmetamethod,gmatch=string.gmatch,gsub=string.gsub,int=int,iscallable=iscallable,len=len,lines=io.lines,list=pack,loadstring=loadstring,match=string.match,maxn=function(iterable)local n=0 | |
591 | 600 | for k,v in next,iterable or{}do |
592 | 601 | local i=int(k)if i and i>n then |
593 | 602 | n=i |
607 | 616 | end,popen=io.popen,print=print,rawget=rawget,rawset=rawset,rep=string.rep,rm=os.remove,select=select,setmetatable=setmetatable,sort=sort,stderr=io.stderr,stdout=io.stdout,str=str,sub=string.sub,tmpname=os.tmpname,tonumber=tonumber,type=type,unpack=function(seq,i,j)return unpack(seq,int(i)or 1,int(j)or int(seq.n)or len(seq))end,write=io.write,},{__call=function(self,env,level)local userenv,level=copy(self),level or 1 |
608 | 617 | for name,value in next,env do |
609 | 618 | if int(name)and type(value)=='string'then |
610 | for k,v in next,require(value)do | |
619 | for k,v in next,(require(value))do | |
611 | 620 | userenv[k]=userenv[k]or v |
612 | 621 | end |
613 | 622 | else |
2 | 2 | <html> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
4 | 4 | <head> |
5 | <title>lyaml 6.2.7 Reference</title> | |
5 | <title>lyaml 6.2.8 Reference</title> | |
6 | 6 | <link rel="stylesheet" href="ldoc.css" type="text/css" /> |
7 | 7 | </head> |
8 | 8 | <body> |
23 | 23 | |
24 | 24 | <div id="navigation"> |
25 | 25 | <br/> |
26 | <h1>lyaml 6.2.7</h1> | |
26 | <h1>lyaml 6.2.8</h1> | |
27 | 27 | |
28 | 28 | |
29 | 29 | |
89 | 89 | </div> <!-- id="main" --> |
90 | 90 | <div id="about"> |
91 | 91 | <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> |
92 | <i style="float:right;">Last updated 2020-11-27 16:17:28 </i> | |
92 | <i style="float:right;">Last updated 2022-10-22 17:12:03 </i> | |
93 | 93 | </div> <!-- id="about" --> |
94 | 94 | </div> <!-- id="container" --> |
95 | 95 | </body> |
2 | 2 | <html> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
4 | 4 | <head> |
5 | <title>lyaml 6.2.7 Reference</title> | |
5 | <title>lyaml 6.2.8 Reference</title> | |
6 | 6 | <link rel="stylesheet" href="../ldoc.css" type="text/css" /> |
7 | 7 | </head> |
8 | 8 | <body> |
23 | 23 | |
24 | 24 | <div id="navigation"> |
25 | 25 | <br/> |
26 | <h1>lyaml 6.2.7</h1> | |
26 | <h1>lyaml 6.2.8</h1> | |
27 | 27 | |
28 | 28 | <ul> |
29 | 29 | <li><a href="../index.html">Index</a></li> |
232 | 232 | <h3>Parameters:</h3> |
233 | 233 | <ul> |
234 | 234 | <li><span class="parameter">value</span> |
235 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
236 | token | |
237 | </li> | |
238 | </ul> | |
239 | ||
240 | <h3>Returns:</h3> | |
241 | <ol> | |
242 | ||
243 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
235 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
236 | token | |
237 | </li> | |
238 | </ul> | |
239 | ||
240 | <h3>Returns:</h3> | |
241 | <ol> | |
242 | ||
243 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
244 | 244 | <em>value</em> which was a string already |
245 | 245 | </ol> |
246 | 246 | |
259 | 259 | </div> <!-- id="main" --> |
260 | 260 | <div id="about"> |
261 | 261 | <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> |
262 | <i style="float:right;">Last updated 2020-11-27 16:17:28 </i> | |
262 | <i style="float:right;">Last updated 2022-10-22 17:12:03 </i> | |
263 | 263 | </div> <!-- id="about" --> |
264 | 264 | </div> <!-- id="container" --> |
265 | 265 | </body> |
2 | 2 | <html> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
4 | 4 | <head> |
5 | <title>lyaml 6.2.7 Reference</title> | |
5 | <title>lyaml 6.2.8 Reference</title> | |
6 | 6 | <link rel="stylesheet" href="../ldoc.css" type="text/css" /> |
7 | 7 | </head> |
8 | 8 | <body> |
23 | 23 | |
24 | 24 | <div id="navigation"> |
25 | 25 | <br/> |
26 | <h1>lyaml 6.2.7</h1> | |
26 | <h1>lyaml 6.2.8</h1> | |
27 | 27 | |
28 | 28 | <ul> |
29 | 29 | <li><a href="../index.html">Index</a></li> |
158 | 158 | <h3>Parameters:</h3> |
159 | 159 | <ul> |
160 | 160 | <li><span class="parameter">fns</span> |
161 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span> | |
161 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span> | |
162 | 162 | list of functions to try |
163 | 163 | </li> |
164 | 164 | </ul> |
228 | 228 | </div> <!-- id="main" --> |
229 | 229 | <div id="about"> |
230 | 230 | <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> |
231 | <i style="float:right;">Last updated 2020-11-27 16:17:28 </i> | |
231 | <i style="float:right;">Last updated 2022-10-22 17:12:03 </i> | |
232 | 232 | </div> <!-- id="about" --> |
233 | 233 | </div> <!-- id="container" --> |
234 | 234 | </body> |
2 | 2 | <html> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
4 | 4 | <head> |
5 | <title>lyaml 6.2.7 Reference</title> | |
5 | <title>lyaml 6.2.8 Reference</title> | |
6 | 6 | <link rel="stylesheet" href="../ldoc.css" type="text/css" /> |
7 | 7 | </head> |
8 | 8 | <body> |
23 | 23 | |
24 | 24 | <div id="navigation"> |
25 | 25 | <br/> |
26 | <h1>lyaml 6.2.7</h1> | |
26 | <h1>lyaml 6.2.8</h1> | |
27 | 27 | |
28 | 28 | <ul> |
29 | 29 | <li><a href="../index.html">Index</a></li> |
98 | 98 | <h3>Parameters:</h3> |
99 | 99 | <ul> |
100 | 100 | <li><span class="parameter">documents</span> |
101 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span> | |
101 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span> | |
102 | 102 | a sequence of Lua tables. |
103 | 103 | </li> |
104 | 104 | <li><span class="parameter">opts</span> |
111 | 111 | <h3>Returns:</h3> |
112 | 112 | <ol> |
113 | 113 | |
114 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
114 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
115 | 115 | equivalest YAML stream |
116 | 116 | </ol> |
117 | 117 | |
130 | 130 | <h3>Parameters:</h3> |
131 | 131 | <ul> |
132 | 132 | <li><span class="parameter">s</span> |
133 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
133 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
134 | 134 | YAML stream |
135 | 135 | </li> |
136 | 136 | <li><span class="parameter">opts</span> |
143 | 143 | <h3>Returns:</h3> |
144 | 144 | <ol> |
145 | 145 | |
146 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span> | |
146 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span> | |
147 | 147 | Lua table equivalent of stream <em>s</em> |
148 | 148 | </ol> |
149 | 149 | |
166 | 166 | <h3>Fields:</h3> |
167 | 167 | <ul> |
168 | 168 | <li><span class="parameter">anchors</span> |
169 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span> | |
169 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span> | |
170 | 170 | map initial anchor names to values |
171 | 171 | </li> |
172 | 172 | <li><span class="parameter">implicit_scalar</span> |
195 | 195 | load all documents from the stream |
196 | 196 | </li> |
197 | 197 | <li><span class="parameter">explicit_scalar</span> |
198 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span> | |
198 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.5">table</a></span> | |
199 | 199 | map full tag-names to parser functions |
200 | 200 | </li> |
201 | 201 | <li><span class="parameter">implicit_scalar</span> |
216 | 216 | </div> <!-- id="main" --> |
217 | 217 | <div id="about"> |
218 | 218 | <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> |
219 | <i style="float:right;">Last updated 2020-11-27 16:17:28 </i> | |
219 | <i style="float:right;">Last updated 2022-10-22 17:12:03 </i> | |
220 | 220 | </div> <!-- id="about" --> |
221 | 221 | </div> <!-- id="container" --> |
222 | 222 | </body> |
2 | 2 | <html> |
3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
4 | 4 | <head> |
5 | <title>lyaml 6.2.7 Reference</title> | |
5 | <title>lyaml 6.2.8 Reference</title> | |
6 | 6 | <link rel="stylesheet" href="../ldoc.css" type="text/css" /> |
7 | 7 | </head> |
8 | 8 | <body> |
23 | 23 | |
24 | 24 | <div id="navigation"> |
25 | 25 | <br/> |
26 | <h1>lyaml 6.2.7</h1> | |
26 | <h1>lyaml 6.2.8</h1> | |
27 | 27 | |
28 | 28 | <ul> |
29 | 29 | <li><a href="../index.html">Index</a></li> |
194 | 194 | <h3>Parameters:</h3> |
195 | 195 | <ul> |
196 | 196 | <li><span class="parameter">value</span> |
197 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
197 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
198 | 198 | token |
199 | 199 | </li> |
200 | 200 | </ul> |
231 | 231 | <h3>Parameters:</h3> |
232 | 232 | <ul> |
233 | 233 | <li><span class="parameter">value</span> |
234 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
234 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
235 | 235 | token |
236 | 236 | </li> |
237 | 237 | </ul> |
268 | 268 | <h3>Parameters:</h3> |
269 | 269 | <ul> |
270 | 270 | <li><span class="parameter">value</span> |
271 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
271 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
272 | 272 | token |
273 | 273 | </li> |
274 | 274 | </ul> |
305 | 305 | <h3>Parameters:</h3> |
306 | 306 | <ul> |
307 | 307 | <li><span class="parameter">value</span> |
308 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
308 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
309 | 309 | token |
310 | 310 | </li> |
311 | 311 | </ul> |
343 | 343 | <h3>Parameters:</h3> |
344 | 344 | <ul> |
345 | 345 | <li><span class="parameter">value</span> |
346 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
346 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
347 | 347 | token |
348 | 348 | </li> |
349 | 349 | </ul> |
380 | 380 | <h3>Parameters:</h3> |
381 | 381 | <ul> |
382 | 382 | <li><span class="parameter">value</span> |
383 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
383 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
384 | 384 | token |
385 | 385 | </li> |
386 | 386 | </ul> |
417 | 417 | <h3>Parameters:</h3> |
418 | 418 | <ul> |
419 | 419 | <li><span class="parameter">value</span> |
420 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
420 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
421 | 421 | token |
422 | 422 | </li> |
423 | 423 | </ul> |
454 | 454 | <h3>Parameters:</h3> |
455 | 455 | <ul> |
456 | 456 | <li><span class="parameter">value</span> |
457 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
457 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
458 | 458 | token |
459 | 459 | </li> |
460 | 460 | </ul> |
492 | 492 | <h3>Parameters:</h3> |
493 | 493 | <ul> |
494 | 494 | <li><span class="parameter">value</span> |
495 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span> | |
495 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span> | |
496 | 496 | token |
497 | 497 | </li> |
498 | 498 | </ul> |
525 | 525 | </div> <!-- id="main" --> |
526 | 526 | <div id="about"> |
527 | 527 | <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> |
528 | <i style="float:right;">Last updated 2020-11-27 16:17:28 </i> | |
528 | <i style="float:right;">Last updated 2022-10-22 17:12:03 </i> | |
529 | 529 | </div> <!-- id="about" --> |
530 | 530 | </div> <!-- id="container" --> |
531 | 531 | </body> |
1 | 1 | * emitter.c, LibYAML emitter binding for Lua |
2 | 2 | * Written by Gary V. Vaughan, 2013 |
3 | 3 | * |
4 | * Copyright (C) 2013-2020 Gary V. Vaughan | |
4 | * Copyright (C) 2013-2022 Gary V. Vaughan | |
5 | 5 | * |
6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 | * of this software and associated documentation files (the "Software"), to deal |
183 | 183 | } |
184 | 184 | #undef MENTRY |
185 | 185 | |
186 | if (style) free ((void *) style); | |
187 | ||
186 | 188 | RAWGET_YAML_CHARP (anchor); lua_pop (L, 1); |
187 | 189 | RAWGET_YAML_CHARP (tag); lua_pop (L, 1); |
188 | 190 | RAWGET_BOOLEAN (implicit); lua_pop (L, 1); |
225 | 227 | "invalid sequence style '%s'", style)); |
226 | 228 | } |
227 | 229 | #undef MENTRY |
230 | ||
231 | if (style) free ((void *) style); | |
228 | 232 | |
229 | 233 | RAWGET_YAML_CHARP (anchor); lua_pop (L, 1); |
230 | 234 | RAWGET_YAML_CHARP (tag); lua_pop (L, 1); |
271 | 275 | "invalid scalar style '%s'", style)); |
272 | 276 | } |
273 | 277 | #undef MENTRY |
278 | ||
279 | if (style) free ((void *) style); | |
274 | 280 | |
275 | 281 | RAWGET_YAML_CHARP (anchor); lua_pop (L, 1); |
276 | 282 | RAWGET_YAML_CHARP (tag); lua_pop (L, 1); |
1 | 1 | * lyaml.h, libyaml parser binding for Lua |
2 | 2 | * Written by Gary V. Vaughan, 2013 |
3 | 3 | * |
4 | * Copyright (C) 2013-2020 Gary V. Vaughan | |
4 | * Copyright (C) 2013-2022 Gary V. Vaughan | |
5 | 5 | * |
6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 | * of this software and associated documentation files (the "Software"), to deal |
1 | 1 | * parser.c, libyaml parser binding for Lua |
2 | 2 | * Written by Gary V. Vaughan, 2013 |
3 | 3 | * |
4 | * Copyright (C) 2013-2020 Gary V. Vaughan | |
4 | * Copyright (C) 2013-2022 Gary V. Vaughan | |
5 | 5 | * |
6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 | * of this software and associated documentation files (the "Software"), to deal |
1 | 1 | * scanner.c, libyaml scanner binding for Lua |
2 | 2 | * Written by Gary V. Vaughan, 2013 |
3 | 3 | * |
4 | * Copyright (C) 2013-2020 Gary V. Vaughan | |
4 | * Copyright (C) 2013-2022 Gary V. Vaughan | |
5 | 5 | * |
6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 | * of this software and associated documentation files (the "Software"), to deal |
1 | 1 | * yaml.c, LibYAML binding for Lua |
2 | 2 | * Written by Andrew Danforth, 2009 |
3 | 3 | * |
4 | * Copyright (C) 2014-2020 Gary V. Vaughan | |
4 | * Copyright (C) 2014-2022 Gary V. Vaughan | |
5 | 5 | * Copyright (C) 2009 Andrew Danforth |
6 | 6 | * |
7 | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
0 | 0 | -- LYAML parse explicit token values. |
1 | 1 | -- Written by Gary V. Vaughan, 2015 |
2 | 2 | -- |
3 | -- Copyright(C) 2015-2020 Gary V. Vaughan | |
3 | -- Copyright(C) 2015-2022 Gary V. Vaughan | |
4 | 4 | -- |
5 | 5 | -- Permission is hereby granted, free of charge, to any person obtaining |
6 | 6 | -- a copy of this software and associated documentation files(the |
0 | 0 | -- Minimal functional programming utilities. |
1 | 1 | -- Written by Gary V. Vaughan, 2015 |
2 | 2 | -- |
3 | -- Copyright(C) 2015-2020 Gary V. Vaughan | |
3 | -- Copyright(C) 2015-2022 Gary V. Vaughan | |
4 | 4 | -- |
5 | 5 | -- Permission is hereby granted, free of charge, to any person obtaining |
6 | 6 | -- a copy of this software and associated documentation files(the |
0 | 0 | -- LYAML parse implicit type tokens. |
1 | 1 | -- Written by Gary V. Vaughan, 2015 |
2 | 2 | -- |
3 | -- Copyright(C) 2015-2020 Gary V. Vaughan | |
3 | -- Copyright(C) 2015-2022 Gary V. Vaughan | |
4 | 4 | -- |
5 | 5 | -- Permission is hereby granted, free of charge, to any person obtaining |
6 | 6 | -- a copy of this software and associated documentation files(the |
0 | 0 | -- Transform between YAML 1.1 streams and Lua table representations. |
1 | 1 | -- Written by Gary V. Vaughan, 2013 |
2 | 2 | -- |
3 | -- Copyright(C) 2013-2020 Gary V. Vaughan | |
3 | -- Copyright(C) 2013-2022 Gary V. Vaughan | |
4 | 4 | -- |
5 | 5 | -- Permission is hereby granted, free of charge, to any person obtaining |
6 | 6 | -- a copy of this software and associated documentation files(the |
0 | 0 | --[[ |
1 | 1 | LYAML binding for Lua 5.1, 5.2, 5.3 & 5.4 |
2 | Copyright (C) 2013-2020 Gary V. Vaughan | |
2 | Copyright (C) 2013-2022 Gary V. Vaughan | |
3 | 3 | ]] |
4 | 4 | |
5 | 5 | package = 'lyaml' |
0 | local _MODREV, _SPECREV = '6.2.7', '-1' | |
1 | ||
2 | package = 'lyaml' | |
3 | version = _MODREV .. _SPECREV | |
4 | ||
5 | description = { | |
6 | summary = 'libYAML binding for Lua', | |
7 | detailed = 'Read and write YAML format files with Lua.', | |
8 | homepage = 'http://github.com/gvvaughan/lyaml', | |
9 | license = 'MIT/X11', | |
10 | } | |
11 | ||
12 | source = { | |
13 | url = 'http://github.com/gvvaughan/lyaml/archive/v' .. _MODREV .. '.zip', | |
14 | dir = 'lyaml-' .. _MODREV, | |
15 | } | |
16 | ||
17 | dependencies = { | |
18 | 'lua >= 5.1, < 5.5', | |
19 | } | |
20 | ||
21 | external_dependencies = { | |
22 | YAML = { | |
23 | library = 'yaml', | |
24 | }, | |
25 | } | |
26 | ||
27 | build = { | |
28 | type = 'command', | |
29 | build_command = '$(LUA) build-aux/luke' | |
30 | .. ' package="' .. package .. '"' | |
31 | .. ' version="' .. _MODREV .. '"' | |
32 | .. ' PREFIX="$(PREFIX)"' | |
33 | .. ' CFLAGS="$(CFLAGS)"' | |
34 | .. ' LIBFLAG="$(LIBFLAG)"' | |
35 | .. ' LIB_EXTENSION="$(LIB_EXTENSION)"' | |
36 | .. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"' | |
37 | .. ' LUA="$(LUA)"' | |
38 | .. ' LUA_DIR="$(LUADIR)"' | |
39 | .. ' LUA_INCDIR="$(LUA_INCDIR)"' | |
40 | .. ' YAML_DIR="$(YAML_DIR)"' | |
41 | .. ' YAML_INCDIR="$(YAML_INCDIR)"' | |
42 | .. ' YAML_LIBDIR="$(YAML_LIBDIR)"' | |
43 | , | |
44 | install_command = '$(LUA) build-aux/luke install --quiet' | |
45 | .. ' INST_LIBDIR="$(LIBDIR)"' | |
46 | .. ' INST_LUADIR="$(LUADIR)"' | |
47 | , | |
48 | copy_directories = {'doc'}, | |
49 | } | |
50 | ||
51 | if _MODREV == 'git' then | |
52 | build.copy_directories = nil | |
53 | ||
54 | source = { | |
55 | url = 'git://github.com/gvvaughan/lyaml.git', | |
56 | } | |
57 | end | |
58 |
0 | local _MODREV, _SPECREV = '6.2.8', '-1' | |
1 | ||
2 | package = 'lyaml' | |
3 | version = _MODREV .. _SPECREV | |
4 | ||
5 | description = { | |
6 | summary = 'libYAML binding for Lua', | |
7 | detailed = 'Read and write YAML format files with Lua.', | |
8 | homepage = 'http://github.com/gvvaughan/lyaml', | |
9 | license = 'MIT/X11', | |
10 | } | |
11 | ||
12 | source = { | |
13 | url = 'http://github.com/gvvaughan/lyaml/archive/v' .. _MODREV .. '.zip', | |
14 | dir = 'lyaml-' .. _MODREV, | |
15 | } | |
16 | ||
17 | dependencies = { | |
18 | 'lua >= 5.1, < 5.5', | |
19 | } | |
20 | ||
21 | external_dependencies = { | |
22 | YAML = { | |
23 | library = 'yaml', | |
24 | }, | |
25 | } | |
26 | ||
27 | build = { | |
28 | type = 'command', | |
29 | build_command = '$(LUA) build-aux/luke' | |
30 | .. ' package="' .. package .. '"' | |
31 | .. ' version="' .. _MODREV .. '"' | |
32 | .. ' PREFIX="$(PREFIX)"' | |
33 | .. ' CFLAGS="$(CFLAGS)"' | |
34 | .. ' LIBFLAG="$(LIBFLAG)"' | |
35 | .. ' LIB_EXTENSION="$(LIB_EXTENSION)"' | |
36 | .. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"' | |
37 | .. ' LUA="$(LUA)"' | |
38 | .. ' LUA_DIR="$(LUADIR)"' | |
39 | .. ' LUA_INCDIR="$(LUA_INCDIR)"' | |
40 | .. ' YAML_DIR="$(YAML_DIR)"' | |
41 | .. ' YAML_INCDIR="$(YAML_INCDIR)"' | |
42 | .. ' YAML_LIBDIR="$(YAML_LIBDIR)"' | |
43 | , | |
44 | install_command = '$(LUA) build-aux/luke install --quiet' | |
45 | .. ' INST_LIBDIR="$(LIBDIR)"' | |
46 | .. ' INST_LUADIR="$(LUADIR)"' | |
47 | , | |
48 | copy_directories = {'doc'}, | |
49 | } | |
50 | ||
51 | if _MODREV == 'git' then | |
52 | build.copy_directories = nil | |
53 | ||
54 | source = { | |
55 | url = 'git://github.com/gvvaughan/lyaml.git', | |
56 | } | |
57 | end | |
58 |
0 | 0 | # LYAML binding for Lua 5.1, 5.2, 5.3 & 5.4 |
1 | # Copyright (C) 2013-2020 Gary V. Vaughan | |
1 | # Copyright (C) 2013-2022 Gary V. Vaughan | |
2 | 2 | |
3 | 3 | specify emitting: |
4 | 4 | - it diagnoses an invalid event: |
0 | 0 | # LYAML binding for Lua 5.1, 5.2, 5.3 & 5.4 |
1 | # Copyright (C) 2013-2020 Gary V. Vaughan | |
1 | # Copyright (C) 2013-2022 Gary V. Vaughan | |
2 | 2 | |
3 | 3 | specify parsing: |
4 | 4 | - it parses empty streams: |
0 | 0 | # LYAML binding for Lua 5.1, 5.2, 5.3 & 5.4 |
1 | # Copyright (C) 2013-2020 Gary V. Vaughan | |
1 | # Copyright (C) 2013-2022 Gary V. Vaughan | |
2 | 2 | |
3 | 3 | before: |
4 | 4 | function consume (n, str) |
0 | 0 | # LYAML binding for Lua 5.1, 5.2, 5.3 & 5.4 |
1 | # Copyright (C) 2013-2020 Gary V. Vaughan | |
1 | # Copyright (C) 2013-2022 Gary V. Vaughan | |
2 | 2 | |
3 | 3 | before: |
4 | 4 | this_module = 'lyaml.functional' |