chiru 0.7.0

A parser generator similar to antlr4.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

use regex::Regex;

// 这个是给 runtime 用的
#[derive(Debug, Clone)]
pub struct LexerRule {
  pub token_type: usize,
  pub token_name: String,
  pub rule: Regex,

  pub channel: usize,
  pub skip: bool,
}