labs-lang / labs

LAbS: a Language with Attribute-based Stigmergies - Parser + Code generator
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Consider using fparsec's identifier parser instead of KEYNAME and IDENTIFIER #8

Closed lou1306 closed 6 years ago

lou1306 commented 6 years ago

The identifier parser is a configurable parser for the XID identifier syntax specified in the Unicode Standard Annex #31.

See http://www.quanttec.com/fparsec/reference/charparsers.html#members.identifier

The identifier parser allows configuration for initial character and more, and it would arguably be clearer than the current kludge of joining parser results via sprintf (perhaps it would be faster, too).