Skip to content

Commit

Permalink
CLDR-16249 Describe EBNF syntax more clearly (#3322)
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiati authored Oct 5, 2023
1 parent 609ed42 commit 2e03d3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/ldml/tr35.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,13 @@ External specifications may also reference particular components of Unicode loca

> _Field X can contain any Unicode region subtag values as given in Unicode Technical Standard #35: Unicode Locale Data Markup Language (LDML), excluding grouping codes._
### EBNF
The BNF syntax used in LDML is a variant of the Extended Backus-Naur Form (EBNF) notation used in [W3C XML Notation](https://www.w3.org/TR/REC-xml/#sec-notation). The main differences are:

1. Bounded repetition following Perl regex syntax is allowed, such as alphanum{3,8}
2. Constraints (well-formedness or validity) use separate notes

In the text, this is sometimes referred to as "EBNF (Perl-based)".

## <a name="Locale" href="#Locale">What is a Locale?</a>

Expand Down

0 comments on commit 2e03d3c

Please sign in to comment.