Convert Hilton's stupid CSV thing to JSON.
Convert the given CSV file
to JSON, invoking fn(err, obj)
.
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <string.h> | |
/** | |
* Work structure. | |
*/ |
#include <sophia.h> | |
#include <stdio.h> | |
int | |
main(void) { | |
char *path = "/tmp/foodb"; | |
void *env = NULL; | |
void *db = NULL; | |
int rc = 0; |
LESS = $(wildcard lib/*/*.less) | |
CSS = $(LESS:.less=.css) | |
COFFEE = app.coffee $(wildcard lib/*/*.coffee) | |
JS = $(COFFEE:.coffee=.js) | |
all: start |
/** | |
* Module dependencies. | |
*/ | |
var builder = require('component-builder'); | |
var resolve = require('component-resolver'); | |
var consoler = require('component-consoler'); | |
var log = consoler.log; | |
var fatal = consoler.fatal; |
diff --git a/.gitignore b/.gitignore | |
index 3c3629e..dd87e2d 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -1 +1,2 @@ | |
node_modules | |
+build | |
diff --git a/Makefile b/Makefile | |
index 20f657b..5a517e2 100644 | |
--- a/Makefile |
console.log('hello') |
stephen@uklt:~/parson$ uname -a | |
Linux uklt 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux | |
stephen@uklt:~/parson$ gcc --version | |
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 | |
Copyright (C) 2013 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
stephen@uklt:~/parson$ make test | |
gcc -O0 -g -Wall -Wextra -std=c89 -pedantic-errors -o test tests.c parson.c | |
./test |
stephen@uklt:~/parson$ make | |
gcc -O0 -g -Wall -Wextra -std=c89 -pedantic-errors -o test tests.c parson.c | |
./test | |
(val = json_parse_file("tests/test_1_1.txt")) != NULL - OK | |
json_value_equals(json_parse_string(json_serialize_to_string(val)), val)- OK | |
(val = json_parse_file("tests/test_1_2.txt")) != NULL - OK | |
json_value_equals(json_parse_string(json_serialize_to_string(val)), val)- OK | |
(val = json_parse_file("tests/test_1_3.txt")) != NULL - OK | |
json_value_equals(json_parse_string(json_serialize_to_string(val)), val)- OK | |
(val = json_parse_file_with_comments("tests/test_1_1.txt")) != NULL - OK |
stephen@uklt:~/sophia$ uname -a | |
Linux uklt 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686 i686 i686 GNU/Linux | |
stephen@uklt:~/sophia$ make | |
SOPHIA v1.2 | |
cc: cc | |
cflags: -g -DSR_INJECTION_ENABLE -O0 -std=c99 -pedantic -Wextra -Wall | |
cc rt/sr_crc.c | |
cc rt/sr_time.c |