// Copyright 2018 Steven Bosnick // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms #![crate_type = "lib"] extern crate luther; #[macro_use] extern crate luther_derive; #[derive(Lexer, Debug)] #[luther(dfa = "MyFunkyDfa")] pub enum Token { #[luther(regex = "ab")] Ab, #[luther(regex = "acc*")] Acc, #[luther(regex = "a(bc|de)")] Abcde(String), } // This is the usual name that luther-dervive would use for the DFA // state enum. pub struct TokenDfa {}