File: input.rs

package info (click to toggle)
rust-logos-codegen 0.15.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Logos, Debug)]
#[logos(export_dir = "export_tmp")]
enum Complex {
    #[regex("[a-z]")]
    Letter,

    #[token("struct")]
    Struct,

    #[token("str")]
    Str,

    #[regex("str[a-z]+")]
    StrPrefixed,
}