LANGTAG top-level property

Parser<List> LANGTAG
final

144s LANGTAG ::= '@' a-zA-Z+ ('-' a-zA-Z0-9+)*

Implementation

final LANGTAG = pattern('@') &
    pattern('a-zA-Z').plus() &
    (pattern('-') & pattern('a-zA-Z0-9').plus()).star();