Rename bang->apply

! syntax item has been referred to as "bang" instead of "apply" in some
places, this is fixed

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-01-12 22:14:54 -08:00
parent 90f27a4108
commit 88080c750b
4 changed files with 9 additions and 9 deletions

View File

@@ -117,7 +117,7 @@ impl<'t> Parser<'t> {
pub fn next_atom(&mut self) -> Result<SpAtom> {
use Token::*;
let token = self.expect_any_token(&[Assign, Word, Float, Int, Str, Bang])?;
let token = self.expect_any_token(&[Assign, Word, Float, Int, Str, Apply])?;
Ok(self.token_to_atom(token))
}
@@ -131,7 +131,7 @@ impl<'t> Parser<'t> {
Token::Float => Atom::Float(text.parse().unwrap()),
Token::Int => Atom::Int(text.parse().unwrap()),
Token::Str => Atom::Str(unescape_string(text)),
Token::Bang => Atom::Apply,
Token::Apply => Atom::Apply,
_ => panic!("invalid token specified for token_to_atom, it should be an atom"),
};
SpAtom::new(span, atom)