commit | 8922f8d0b334301f3c707bb53863c03d6ce0c773 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Fri Oct 01 07:16:05 2021 -0700 |
committer | Joel Galenson <jgalenson@google.com> | Fri Oct 01 07:16:05 2021 -0700 |
tree | 68bfefbf69a73875136251b57e507dbf034a9e4c | |
parent | fd59300003142e5bc8ad77c146bc033850af84a2 [diff] |
Update TEST_MAPPING Test: None Change-Id: I212a51643b492f36e244e552bdd5e1bdd3752fb8
Determine if a char
is a valid identifier for a parser and/or lexer according to Unicode Standard Annex #31 rules.
extern crate unicode_xid; use unicode_xid::UnicodeXID; fn main() { let ch = 'a'; println!("Is {} a valid start of an identifier? {}", ch, UnicodeXID::is_xid_start(ch)); }
unicode-xid supports a no_std
feature. This eliminates dependence on std, and instead uses equivalent functions from core.