dart-petitparser
dart-petitparser copied to clipboard
Parser for emojis?
Hi, thank you so much for this amazing package. I've built notescalculator.com using it and it helped a lot.
May I know If there is a way to accept emojis in a parser?
I have this parser now
late final Parser<String> variable = [
char(' ').star(),
letter(),
pattern('a-zA-Z_0-9 ').star().optional()
].toSequenceParser().flatten().map((value) => value.trim());
But I would like it to accept something like 👍 hello or hel👍lo