slicec 0.3.3

The Slice parser and other core components for Slice compilers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) ZeroC, Inc.

use clap::Parser;
use slicec::slice_options::SliceOptions;
use std::process::exit;

pub fn main() {
    let options = SliceOptions::parse();
    let state = slicec::compile_from_options(&options, |_| {}, |_| {});
    exit(i32::from(state.emit_diagnostics(&options)));
}