Parse identifiers
(input: &str)
| 1851 | |
| 1852 | /// Parse identifiers |
| 1853 | fn identifier(input: &str) -> IResult<&str, &str> { |
| 1854 | recognize(pair( |
| 1855 | alt((alpha1, tag("_"))), |
| 1856 | many0(alt((alphanumeric1, tag("_")))), |
| 1857 | ))(input) |
| 1858 | } |
| 1859 | |
| 1860 | /// Public function to tokenize input |
| 1861 | pub fn tokenize(input: &str) -> Result<Vec<Token>, String> { |
nothing calls this directly
no outgoing calls
no test coverage detected