dart-petitparser icon indicating copy to clipboard operation
dart-petitparser copied to clipboard

Parser for emojis?

Open nank1ro opened this issue 1 year ago • 1 comments

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

nank1ro avatar Aug 17 '24 15:08 nank1ro