sipha 3.0.0

PEG parser, syntax trees, and code generation
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::parse::builder::GrammarBuilder;

use super::classes;

/// ASCII identifier: `IDENT_START IDENT_CONT*`.
#[inline]
pub fn ident(g: &mut GrammarBuilder) {
    g.class_with_label(classes::IDENT_START, "identifier start");
    g.consume_while_class_with_label(classes::IDENT_CONT, "identifier continuation", 0);
}