#Where can I find Atom, String, or List syntax macro?
1 messages · Page 1 of 1 (latest)
AFAIK these cannot be defined like other parts of language simply because these aren't like functions, but terms on their own (or parts of other terms in case of :).
Okay, where can I expect to find them then? And of which part is :?
https://hexdocs.pm/elixir/1.14/syntax-reference.html - in syntax reference
I mean, in the code base
These are handled in parser
Oh okay
here https://github.com/elixir-lang/elixir/blob/main/lib/elixir/src/elixir_tokenizer.erl
and here https://github.com/elixir-lang/elixir/blob/main/lib/elixir/src/elixir_parser.yrl
if you feel comfortable enough reading erlang and yecc
some things are constructors/special forms, others are literally syntax
Thanks! I was looking for those files