aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/ast/parser.rs
diff options
context:
space:
mode:
authorTolmachev Igor <me@igorek.dev>2026-05-09 18:39:11 +0300
committerTolmachev Igor <me@igorek.dev>2026-05-09 18:42:04 +0300
commit6c5c627dd441b0e7ac52cfd05e1923584dd213ae (patch)
tree02685195bcfd71f4c823651b2ccc606ebcaba9bb /compiler/src/ast/parser.rs
parentc628391e10c6db7ca8b979e20d5b09ac92251c96 (diff)
downloadcrisp-6c5c627dd441b0e7ac52cfd05e1923584dd213ae.tar.gz
crisp-6c5c627dd441b0e7ac52cfd05e1923584dd213ae.zip
Add parser tests
Diffstat (limited to 'compiler/src/ast/parser.rs')
-rw-r--r--compiler/src/ast/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/ast/parser.rs b/compiler/src/ast/parser.rs
index 8e476ad..83e48b8 100644
--- a/compiler/src/ast/parser.rs
+++ b/compiler/src/ast/parser.rs
@@ -6,7 +6,7 @@ use crate::{
6 span::{Pos, Span, Spanned}, 6 span::{Pos, Span, Spanned},
7}; 7};
8 8
9const MAX_DEPTH: usize = 256; // TODO: make it a compile flag 9pub(super) const MAX_DEPTH: usize = 256; // TODO: make it a compile flag
10 10
11fn parse_number(number: &str) -> Result<Atom, Error> { 11fn parse_number(number: &str) -> Result<Atom, Error> {
12 let is_float = number.bytes().any(|b| matches!(b, b'.' | b'e' | b'E')) 12 let is_float = number.bytes().any(|b| matches!(b, b'.' | b'e' | b'E'))