Generated Python Unicode properties #
This file is generated by scripts/generate_unicode_table.py; do not edit it by hand. It
freezes the CPython 3.12.13 character predicates for Unicode 15.0.0 that the einops lexer
reproduces.
The table lists runs of code points sharing the same nonzero property flags, in
ascending order and pairwise disjoint. Adjacent decimal alphabets remain separate even when
their flags agree. Bit 0 records str.isalnum, bit 1 records
str.isidentifier on the single character, bit 2 records whether the character may continue
an identifier, and bit 3 records str.isdecimal. Every decimal run covers exactly the ten
digits of one decimal alphabet in order, so the digit value of a decimal character is its
offset from the start of its run.
Instances For
Instances For
Flag bit recording str.isalnum.
Instances For
Flag bit recording that the character may start an identifier.
Instances For
Flag bit recording that the character may continue an identifier.
Instances For
Flag bit recording str.isdecimal.
Instances For
Part 0 of intervals, split to stay within elaborator limits.
Instances For
Part 1 of intervals, split to stay within elaborator limits.
Instances For
Part 2 of intervals, split to stay within elaborator limits.
Instances For
The 1147 property runs of Unicode 15.0.0, ascending and disjoint.
Instances For
The property run containing a character, if it has any recorded property.
The structural fuel keeps lookup reducible in kernel proofs of the lexer. The pinned
Array.binSearch implementation does not reduce through the imported module boundary.
Instances For
Whether a character carries the given property flag.
Instances For
The digit value of a str.isdecimal character.