Skip to content

programs/tokens.chef raises parse error #2

@eggplants

Description

@eggplants
$ cargo run programs/tokens.chef
warning: use of deprecated associated function `std::array::IntoIter::<T, N>::new`: use `IntoIterator::into_iter` instead
   --> src/parser.rs:655:31
    |
655 |         let kinds = IntoIter::new(kinds);
    |                               ^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `rchef` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/rchef programs/tokens.chef`
[line 28] syntax error: expected FULLSTOP, found INTO
[line 29] syntax error: expected FULLSTOP, found INTO
[line 59] syntax error: expected IDENTIFIER, found SERVES
[line 59] syntax error: expected IDENTIFIER, found NUMBER
[line 59] syntax error: expected IDENTIFIER, found FULLSTOP
parse error

It seems that Add method with INTO is not valid for rchef parser like line 28 or 29.

After replacing into with to, the parser raises [line 71] syntax error: expected IDENTIFIER, found NEWLINE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions