kotlin_parser/parse/expression/
path.rs

1use chumsky::prelude::*;
2
3pub fn path_parser() -> impl Parser<char, Vec<String>, Error = Simple<char>> {
4    text::ident()
5        .then(just('.').ignore_then(text::ident()).repeated())
6        .map(|(first, rest)| [first].into_iter().chain(rest).collect())
7}