added the generated source files to the /src dir along with instructions on how to generate them

This commit is contained in:
alisdair sullivan 2010-08-04 22:24:50 -07:00
parent c0aca66a75
commit 8e21ab9145
9 changed files with 6462 additions and 5 deletions

1
IMPORTANT Normal file
View 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.

View file

@ -89,6 +89,8 @@ jsx is stream based and allows the parsing of naked, unwrapped json values. toge
### 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

View file

@ -1,6 +1,5 @@
compile: expand
compile:
./rebar compile
./priv/backends.escript clean
expand:
./priv/backends.escript create
@ -13,7 +12,6 @@ prove: compile
clean:
./rebar clean
./priv/backends.escript clean
install: compile
./rebar -f install

View file

@ -21,8 +21,10 @@
%% THE SOFTWARE.
%% this is a template for the utf8, utf16, utf16le, utf32 and utf32le decoders. it should
%% not be compiled directly, see the build script in /priv for details
%% this is the template for the utf backends for the jsx decoder. run
%% `./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).
-author("alisdairsullivan@yahoo.ca").

1284
src/jsx_utf16.erl Normal file

File diff suppressed because it is too large Load diff

1301
src/jsx_utf16le.erl Normal file

File diff suppressed because it is too large Load diff

1278
src/jsx_utf32.erl Normal file

File diff suppressed because it is too large Load diff

1295
src/jsx_utf32le.erl Normal file

File diff suppressed because it is too large Load diff

1296
src/jsx_utf8.erl Normal file

File diff suppressed because it is too large Load diff