nounsql-core 0.1.3

Core of the NounSQL compiler: lexer, parser, resolver, and DDL code generation.
Documentation

nounsql-core

The core of the NounSQL compiler: lexer, parser, resolver and code generation.

The CLI is nounsql and the language server is nounsql-lsp.

use nounsql_core::{codegen, dialect, parse, resolve};

let (doc, diagnostics) = parse(source);
let (schema, more) = resolve(&doc, dialect::default());
let sql = codegen::emit(dialect::default(), &schema);

The serde feature makes the resolved schema serialisable, which is what nounsql ir --json and the WebAssembly build use.

Documentation: https://misebox.github.io/nounsql