aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/src
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-25 23:54:54 -0800
committerbnewbold <bnewbold@robocracy.org>2016-12-25 23:54:54 -0800
commit1e04c8274e473039d2b183c120ab7f3b1b981c3e (patch)
treee709cc0b99a7de3b0fd6eb71b292e7351286e95c /modelica-parser-lalrpop/src
parent4bdf3106e13576e1b46a1d5e2e841ebc61045ee1 (diff)
downloadmodelthing-1e04c8274e473039d2b183c120ab7f3b1b981c3e.tar.gz
modelthing-1e04c8274e473039d2b183c120ab7f3b1b981c3e.zip
parser: namespacing
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