aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/src
diff options
context:
space:
mode:
Diffstat (limited to 'modelica-parser-lalrpop/src')
-rw-r--r--modelica-parser-lalrpop/src/lib.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/modelica-parser-lalrpop/src/lib.rs b/modelica-parser-lalrpop/src/lib.rs
index 0b94c35..26fca79 100644
--- a/modelica-parser-lalrpop/src/lib.rs
+++ b/modelica-parser-lalrpop/src/lib.rs
@@ -3,13 +3,23 @@ extern crate lalrpop_util;
extern crate colored;
extern crate regex;
-pub mod parser;
-pub mod ast;
+mod parser;
+mod ast;
use colored::*;
use lalrpop_util::ParseError;
use regex::Regex;
+pub use ast::*;
+pub use parser::{
+ parse_file,
+ parse_model,
+ parse_package,
+ parse_block,
+ parse_connector,
+ parse_record,
+};
+
pub fn strip_comments(raw: &str) -> String {
// TODO: shouldn't recompile regex on every function call