air-parser 0.4.0

Parser for the AirScript language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::ParseTest;

// SECTIONS
// ================================================================================================

#[test]
fn error_constraint_without_section() {
    // Constraints outside of valid sections are not allowed.
    let source = r#"
    def test

    enf clk' = clk + 1
    "#;
    ParseTest::new().expect_unrecognized_token(source);
}