Generate code for parser

G2 code generation used after benchmarking.

style	benchmark           old ns/op     new ns/op     delta
T0		BenchmarkParser     672           5631          +737.95%
T1		BenchmarkParser     672           5579          +730.21%
G0		BenchmarkParser     672           4049          +502.53%
G1		BenchmarkParser     672           3868          +475.60%
G2		BenchmarkParser     672           3543          +427.23%

F0 and F1 create massive Go source (6.0M) and so were not tested.

Invalid tests removed, additional tests for invalid input to be added
later.
This commit is contained in:
kortschak 2014-07-24 21:25:14 +09:30
parent 92d50bb9f7
commit 22bad1701f
3 changed files with 3316 additions and 205 deletions

3007
nquads/parse.go Normal file

File diff suppressed because it is too large Load diff