5 releases (breaking)

0.16.0 Sep 25, 2022
0.15.0 Jun 10, 2022
0.14.0 Mar 15, 2022
0.13.0 Sep 30, 2021
0.11.0 Jan 19, 2021

#762 in Parser implementations

Download history 178/week @ 2022-12-05 235/week @ 2022-12-12 290/week @ 2022-12-19 198/week @ 2022-12-26 169/week @ 2023-01-02 221/week @ 2023-01-09 161/week @ 2023-01-16 204/week @ 2023-01-23 436/week @ 2023-01-30 270/week @ 2023-02-06 277/week @ 2023-02-13 1200/week @ 2023-02-20 1155/week @ 2023-02-27 1499/week @ 2023-03-06 1926/week @ 2023-03-13 1634/week @ 2023-03-20

6,239 downloads per month
Used in 8 crates (2 directly)

Unlicense/MIT

48KB
567 lines

boa-unicode

boa-unicode defines the trait to provide methods for querying properties or classes for Unicode identifiers. These properties are used to determine if a code point (char) is valid for being the start/part of an identifier in lexer and parser.

Current version: Unicode 15.0.0

Development

The Unicode character tables used to query properties are generated by build_tables.js. This script depends on Node.js and rustfmt. You can run the script with:

$ node build_tables.js

or with npm:

$ npm run build-tables

The configurations are defined as constants in the script. Please check the comments in build_tables.js for more information.

More Info


lib.rs:

This library implements the extension to query if a char belongs to a particular unicode identifier property. Version: Unicode 15.0.0

More information:

Dependencies

~215KB