diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-04-29 00:12:36 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-04-29 00:12:36 +0200 |
| commit | f279c52b503e9dacb558d8a46a75b42bc5222ee4 (patch) | |
| tree | b70dd229877d18b5db45e88966d6114993281dad /src/lib.rs | |
| parent | a51e7a0758758d92ce3655896db6c56d5c1013cf (diff) | |
Simple dynamic, scoped function parsing 📥
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -57,6 +57,7 @@ pub mod engine; pub mod export; #[macro_use] pub mod font; +pub mod func; pub mod parsing; pub mod syntax; @@ -105,7 +106,7 @@ impl<'p> Compiler<'p> { impl<'p> Compiler<'p> { /// Parse source code into a syntax tree. #[inline] - pub fn parse<'s>(&self, src: &'s str) -> Result<SyntaxTree<'s>, ParseError> { + pub fn parse(&self, src: &str) -> Result<SyntaxTree, ParseError> { Parser::new(Tokens::new(src)).parse() } |
