1cb90f4e65
Eventually, there will probably be a `crate` visibility specifier that does the same thing as `pub(crate)`. This commit replaces `pub` with `pub(crate)`, so when `crate` is available we can easily switch to it.
10 lines
205 B
Rust
10 lines
205 B
Rust
use crate::common::*;
|
|
|
|
pub(crate) fn compile(text: &str) {
|
|
if let Err(error) = Parser::parse(text) {
|
|
if let CompilationErrorKind::Internal { .. } = error.kind {
|
|
panic!("{}", error)
|
|
}
|
|
}
|
|
}
|