use fluid_parser::lexer::Lexer; use fluid_parser::parser::Parser; const TEST: &str = r#"# data file for the Fltk User Interface Designer (fluid) version 1.0400 header_name {.h} code_name {.cxx} avoid_early_includes class UserInterface {open } { Function {make_window()} {open } { Fl_Window Hello {open xywh {821 256 400 344} type Double align 80 resizable visible callback { println!(""); show_window(); } } { Fl_Flex {} {open xywh {5 5 390 335} resizable gap 5 set_size_tuples {2 0 30 2 30 } visible } { Fl_Flex Nmae {open xywh {5 40 390 265} type HORIZONTAL gap 5 } { Fl_Text_Display {} { xywh {5 40 390 265} visible } } } Fl_Box this { xywh {5 40 390 265} shortcut 0xff textsize 12 } } } }"#; fn main() { let l = Lexer::new(TEST); let mut p = Parser::new(l); let a = p.parse(); println!("{:#?}", a); }