Skip to content

"(1 + 2)" and grammar #14

Closed
Closed
@banditpig

Description

@banditpig

Hi, Thanks for the interesting tutorial! I'm just learning about PEG etc and wondered how to modify the grammar so that
//assert_eq!(Interpreter::source("(1 + 2)").unwrap() as i32, 3);
will work?

Thanks
Mike

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions