I'm creating a JSON-RPC library and I need to know what characters are allowed as Haxe method names. I know that I must be cautious of allowed method names in the target languages as well, but I'm trying to start with Haxe : )
Asked
Active
Viewed 87 times
1 Answers
2
Alpha or underscore for the first symbol and alpanumeric or underscore for the next symbols.
[a-zA-Z_][a-zA-Z0-9_]*
is the regexp for haxe method name.

stroncium
- 1,430
- 9
- 8
-
Link to source would be nice : ) – Indolering Apr 14 '14 at 12:07
-
Here you go: https://github.com/HaxeFoundation/haxe/blob/development/lexer.mll#L221 – stroncium Apr 21 '14 at 11:18