added the generated source files to the /src dir along with instructions on how to generate them
This commit is contained in:
parent
c0aca66a75
commit
8e21ab9145
9 changed files with 6462 additions and 5 deletions
1
IMPORTANT
Normal file
1
IMPORTANT
Normal file
|
@ -0,0 +1 @@
|
||||||
|
don't edit the jsx_utfx.erl source files directly, edit /priv/jsx_decoder.erl and run `./priv/backends.escript create` to regenerate the jsx_utfx.erl source files.
|
|
@ -89,6 +89,8 @@ jsx is stream based and allows the parsing of naked, unwrapped json values. toge
|
||||||
|
|
||||||
### notes ###
|
### notes ###
|
||||||
|
|
||||||
|
don't edit the various jsx\_utfx.erl files in the src dir directly, see /priv/jsx\_decoder.erl for why
|
||||||
|
|
||||||
jsx supports utf8, utf16 (little and big endian) and utf32 (little and big endian). future support is planned for erlang iolists
|
jsx supports utf8, utf16 (little and big endian) and utf32 (little and big endian). future support is planned for erlang iolists
|
||||||
|
|
||||||
|
|
||||||
|
|
4
makefile
4
makefile
|
@ -1,6 +1,5 @@
|
||||||
compile: expand
|
compile:
|
||||||
./rebar compile
|
./rebar compile
|
||||||
./priv/backends.escript clean
|
|
||||||
|
|
||||||
expand:
|
expand:
|
||||||
./priv/backends.escript create
|
./priv/backends.escript create
|
||||||
|
@ -13,7 +12,6 @@ prove: compile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
./rebar clean
|
./rebar clean
|
||||||
./priv/backends.escript clean
|
|
||||||
|
|
||||||
install: compile
|
install: compile
|
||||||
./rebar -f install
|
./rebar -f install
|
|
@ -21,8 +21,10 @@
|
||||||
%% THE SOFTWARE.
|
%% THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
%% this is a template for the utf8, utf16, utf16le, utf32 and utf32le decoders. it should
|
%% this is the template for the utf backends for the jsx decoder. run
|
||||||
%% not be compiled directly, see the build script in /priv for details
|
%% `./priv/backends.escript create` to regenerate the source code for the various
|
||||||
|
%% decoders if you edit this file. do not edit the resulting source files directly.
|
||||||
|
|
||||||
|
|
||||||
-module(?name).
|
-module(?name).
|
||||||
-author("alisdairsullivan@yahoo.ca").
|
-author("alisdairsullivan@yahoo.ca").
|
||||||
|
|
1284
src/jsx_utf16.erl
Normal file
1284
src/jsx_utf16.erl
Normal file
File diff suppressed because it is too large
Load diff
1301
src/jsx_utf16le.erl
Normal file
1301
src/jsx_utf16le.erl
Normal file
File diff suppressed because it is too large
Load diff
1278
src/jsx_utf32.erl
Normal file
1278
src/jsx_utf32.erl
Normal file
File diff suppressed because it is too large
Load diff
1295
src/jsx_utf32le.erl
Normal file
1295
src/jsx_utf32le.erl
Normal file
File diff suppressed because it is too large
Load diff
1296
src/jsx_utf8.erl
Normal file
1296
src/jsx_utf8.erl
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue