// 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)] pub enum Token { #[luther(regex = "ab")] Ab, #[luther(regex = "acc*")] Acc, #[luther(regex = "a(bc|de)")] Abcde(String), // This token does not have a regex assocated with it. ExtraToken, }