This commit is contained in:
Erin 2022-04-12 22:15:53 +02:00 committed by ondra05
parent 6720ecc534
commit f1da9b2117
3 changed files with 2 additions and 4 deletions

View file

@ -17,7 +17,6 @@
//! [`interpret_with_output`]: Interpreter::interpret_with_output
#![deny(missing_docs)]
// Putting this here because we still don't use the entire capabilities of this module. ~~Alex
#![allow(dead_code)]

View file

@ -2,12 +2,11 @@
//!
//! Type of this parser is recursive descent
use logos::{Lexer, Logos};
use crate::ast::*;
use crate::error::{Error, ErrorKind};
use crate::lexer::Token;
use crate::variables::Value;
use logos::{Lexer, Logos};
/// Parser structure which holds lexer and metadata
///

View file

@ -605,8 +605,8 @@ impl ops::Sub for Value {
b.call(
&args
.iter()
.cloned()
.take(resulting_arity)
.cloned()
.chain(std::iter::repeat_with(|| ValueRef::new(Value::Nul)))
.take(arity)
.collect::<Vec<_>>(),