swamp-code-gen 0.2.27

generates swamp-vm opcodes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 */

use swamp_code_gen::code_bld::CodeBuilderOptions;
use swamp_code_gen::top_state::TopLevelGenState;

#[test]
fn check_it_compiles() {
    let options = CodeBuilderOptions {
        should_show_debug: false,
    };
    let top_state = TopLevelGenState::new(options);
    assert_eq!(top_state.codegen_state.functions.len(), 0);
}