mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 09:15:32 +01:00
Fixing trailing parenthesis problem in loading files
Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
@ -129,7 +129,11 @@ impl Reader {
|
||||
/// Create anew Reader with the tokens
|
||||
/// Call read_from with the reader instance
|
||||
pub fn read_str(reader: &Reader) -> MalRet {
|
||||
reader.read_form()
|
||||
let mut ret = Nil;
|
||||
while !reader.ended() {
|
||||
ret = reader.read_form()?;
|
||||
}
|
||||
Ok(ret)
|
||||
}
|
||||
|
||||
/// Read a string and return a list of tokens in it (following regex in README)
|
||||
|
||||
Reference in New Issue
Block a user