Commit Graph

756 Commits

Author SHA1 Message Date
Mike Farah
cb3e8ef323 Goccy wip 2023-10-17 14:50:32 +11:00
Mike Farah
e4894528a3 goccy wip 2023-10-10 14:28:53 +11:00
Mike Farah
f3743204ed goccy wip 2023-10-06 10:36:28 +11:00
Mike Farah
0fceef741b goccy wip 2023-10-05 20:22:53 +11:00
Mike Farah
45802f384c goccy wip 2023-10-05 18:04:11 +11:00
Mike Farah
d79e93d637 goccy wip 2023-10-05 17:53:42 +11:00
Mike Farah
b0ff65d6b7 Fixed update children problem with xml 2023-10-05 16:29:12 +11:00
Mike Farah
b2a3cb47a7 Merging from master 2023-10-05 16:01:24 +11:00
Mike Farah
d113344abf Added tonumber support #71 2023-10-05 15:15:01 +11:00
Mike Farah
6e65d44a98 Can build yq with no lua 2023-10-03 16:22:23 +11:00
Kim Alvefur
5fa41624c9
Add support for Lua input (#1810) 2023-10-03 16:00:51 +11:00
Mike Farah
ee900ec997 Added kind operator 2023-10-02 14:43:12 +11:00
Mike Farah
0cf3adf5dd Adding another xml test; spelling fixes 2023-09-26 14:43:08 +10:00
-pthread -Wall
05ad1dad90
Fix typos (#1798) 2023-09-26 14:18:18 +10:00
Mike Farah
cdb9b56066 Spellig with cspell 2023-09-19 10:43:11 +10:00
Mike Farah
e09779e004 Fixed number parsing as float bug in JSON #1756 2023-09-19 09:42:25 +10:00
Mike Farah
c66480448d Added recipes documentation 2023-09-01 14:40:33 +10:00
Mike Farah
cda69bff5e Adding recipes 2023-09-01 12:17:54 +10:00
Mike Farah
e5564c18fe Another xml example 2023-09-01 11:52:58 +10:00
Mike Farah
55c0d485ba Fixed string, null concact consistency #1712 2023-08-30 09:46:45 +10:00
Mike Farah
71f95ab87b Fixed .a!= parsing issue #1711 2023-08-30 09:40:57 +10:00
Mike Farah
d18a5e3adc Fixed new linting issue CWE-118 2023-08-28 17:39:46 +10:00
Mike Farah
44c7f3aec3 Preparing release notes 2023-08-11 13:52:50 +10:00
Kim Alvefur
d302d75c77
Implement basic Lua output support (#1745)
* Implement basic Lua output support

Ref #1700

Basic but working serialization to Lua tables.

* Escape larger set of characters in Lua output

Started with a minimum of replacements, this should be more complete,
tho not all substitutions are strictly required in Lua.

* Print simple keys unquoted in Lua output

String keys that satisfy the requirements for variable names can be used
as keys without quotes in tables.

* Quote Lua keywords in table keys

Keywords are not valid as unquoted keys, thus must be quoted

* Make output of unquoted Lua table keys optional

Generally safer and simpler to not do it.

* Hook up settings for Lua output

* Allow special characters in Lua prefix and suffix

--lua-suffix='});^M' didn't work, so taking this approach instead

* Panic on unhandled YAML Kind in Lua encoder

* Handle YAML case varied booleans in Lua encoder

* Handle special-case numbers in Lua encoder

* Reject unhandled scalar Tags in Lua encoder

* Add note about how Lua nil is unsuitable as table key

Could add some context tracking in the future to allow rejecting nil in
a table key context.

* Return error instead of panic in Lua encoder

* Add initial test for Lua encoder

Boilerplate mostly copied from toml_test.go

* Additional Lua output tests

* Generate Lua encoder documentation

Mostly just for the boilerplate

* Convert octal for Lua output

Lua doesn't have the 0oNNN syntax for octal integers, only decimal and
hexadecimal, hence those can be passed trough as is while octal needs
special treatment.

* Implement indentation in in Lua output

* Respect string Style in Lua encoder

Lua has 'single', "double" and [[ long ]] strings.

* Expand Lua examples

* Output line comments in Lua output

* Implement Lua globals output mode
2023-08-11 12:56:49 +10:00
Mike Farah
0f82fb7fba Adding more tests 2023-06-20 11:25:50 +10:00
Mike Farah
37489aef14 Removed unwrap doc 2023-06-07 10:45:42 -07:00
Mike Farah
f7c057b167 Comment processing fixes 2023-06-06 13:33:16 -07:00
Mike Farah
49b8eafaf5 Comment processing fixes 2023-06-06 12:10:28 -07:00
Mike Farah
584ec998bc Unit tests pass! 2023-06-06 11:06:23 -07:00
Mike Farah
b2415f2ca5 Drop document type 2023-06-05 15:27:59 -07:00
Mike Farah
28909bbc5a Recurse doc problem 2023-06-05 14:46:59 -07:00
Mike Farah
fd67748078 Fixed styling + delete issue 2023-05-30 15:05:28 +10:00
Mike Farah
f6c3fab309 Fixed key issue 2023-05-30 11:58:41 +10:00
Mike Farah
d17216de3f Fixed group by issue 2023-05-30 11:39:25 +10:00
Mike Farah
d033ad570e Fixed create map issue 2023-05-30 11:34:31 +10:00
Mike Farah
82f717226c Fixed traverse issue 2023-05-30 08:46:51 +10:00
Mike Farah
d933c00904 Merge branch 'master' into generic_ast 2023-05-28 14:22:48 +10:00
Mike Farah
fcc04823ca Added docs on base64 only working with utf8 content 2023-05-23 15:38:08 +10:00
Mike Farah
5950329e2c Added docs on yes/no being strings in yaml spec 1.2 2023-05-23 15:35:39 +10:00
Mike Farah
d9357859ed use addChild methods 2023-05-09 13:51:21 +10:00
Mike Farah
0ca8a13e36 calculate document,filename and fileindex by parent 2023-05-05 15:19:58 +10:00
Mike Farah
68df67f550 wip 2023-05-05 14:13:18 +10:00
Mike Farah
cde32c156b fixed entries op 2023-05-04 19:46:35 +10:00
Mike Farah
4921302c28 merged from master 2023-05-04 19:27:37 +10:00
Mike Farah
9ba85a0a46 fixed json encode/decode 2023-05-04 19:22:33 +10:00
Mike Farah
4d50b001d1 Added test for null array json example 2023-05-04 14:48:57 +10:00
Arthur Fritz Santiago
d14eaa9b49
fix: runtime error: invalid memory address or nil pointer dereference (#1649) 2023-05-04 14:43:48 +10:00
Giorgio Gallo
80b42b81fd
Implement shell output format (#1645)
* fix typo in a comment

* implement shell output format

* fix a typo

* add two test cases, have source uses ascii only

* add integration tests and documentation

* add fixes after code revieew
2023-05-04 11:06:56 +10:00
Mike Farah
e3ccd05a00 wip - rabbit hole :/ 2023-05-02 15:07:04 +10:00
Mike Farah
42843763ca wip - rabbit hole :/ 2023-05-02 14:07:59 +10:00