[erlang-questions] Pmods, packages, Unicode source code and column numbers in compiler - what will happen in R16?
Thu Oct 18 23:50:34 CEST 2012
On 18/10/2012, at 8:55 PM, Vlad Dumitrescu wrote:
> If the package feature is dropped, does this mean that the associated
> lexical rule for atom names is also dropped? I would like to have it
> removed too, as the dot character is already overloaded and makes
> lexers harder to implement.
Dots were allowed in atom names long before packages were dreamed of.
The idea is that can be an atom without
I've written a couple of lexical analysers for Erlang, and it's not
_that_ hard. Leaving @ out of the discussion,
variable = [_[:upper:]][_[:alnum:]]*
atom = [.]?[[:lower:]]([[:digit:]]|[_[:upper:]]|[.]?[[:lower:]])*
with the added weirdness that a leading "." is discarded.
More information about the erlang-questions