blob: 2cc730afce4267200d0dfb294898ac6522750801 [file] [log] [blame]
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or> or the MIT
// license <LICENSE-MIT or>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
extern crate pest;
extern crate pest_derive;
#[grammar_inline = "string = { \"abc\" }"]
struct GrammarParser;
fn inline_string() {
parses_to! {
parser: GrammarParser,
input: "abc",
rule: Rule::string,
tokens: [
string(0, 3)