Yurii Rashkovskii
bb6562391e
Fixes a bug that broke the correct behavior of the in guard
...
The correct behavior is:
> [] in [1,2,3] == false
However, recently introduced bug made this work like this:
> [] in [1,2,3] == true
2012-07-12 17:29:13 -07:00
José Valim
1b4603160c
Add elixir's parse transform to be used with erlang code
2012-07-12 11:29:46 +02:00
José Valim
df2254f8a3
Pipeline op must be right associative
2012-07-11 11:48:38 +02:00
José Valim
439971e5b1
Small fixes to typespecs
2012-07-10 19:39:43 +02:00
José Valim
28de003aab
Add quote location: :keep
...
This allows functions defined in macro to point to the file
that define them instead of keeping the injection point location.
2012-07-10 14:40:18 +02:00
José Valim
40cdb6494d
Refactor unpack_ast code
2012-07-10 14:40:18 +02:00
José Valim
b74615e559
Add Code.string_to_ast(!)
2012-07-10 10:45:22 +02:00
José Valim
7728f3d630
Deprecate loop, used named functions to recur instead
...
The reason for deprecating loops is two fold:
1) It reduces the number of special forms. Special forms usually
allow a variable number of arguments and have special scoping
rules and they cannot be overridden or removed;
2) Anonymous looping is highly uncommon in Erlang and slower
than if we loop using named functions;
loop may be added back in the future as a non special form.
2012-07-10 10:10:40 +02:00
José Valim
a4ab7ee75c
Normalize file attribute in the expected place
2012-07-09 23:04:21 +02:00
José Valim
acc4b8e6fe
Introduce regex match operator (=~)
2012-07-08 21:17:10 +02:00
José Valim
cb51b92e2a
Dispatch the access protocol in atoms to __access__/2
2012-07-08 18:30:55 +02:00
José Valim
7c6f78206e
Allow elixir to work as a rebar dependency
...
rebar expects its dependencies to have a file at `src/elixir.app.src`.
This is a work around a rebar limitation since it should support a way
to have an umbrella application, as OTP.
2012-07-08 16:50:54 +02:00
José Valim
7e068aca85
Introduce pipeline op
2012-07-06 11:56:04 +02:00
José Valim
062813c8f3
Add bitwise operators
2012-07-06 11:21:22 +02:00
José Valim
3f82624d0f
Introduce new operators: <<<, >>>, &&&, |||, ^^^, ~~~
2012-07-06 10:58:39 +02:00
José Valim
d5031b6347
Move all code to erlang style apps
2012-07-05 20:20:16 +02:00