Commit Graph
1415 Commits
Author SHA1 Message Date
Aleksei Magusev 26f68bc79b Correct use of hyphens 2017-04-23 22:57:26 +02:00
José Valim 863a48567b Do not mark -file as generated, closes #6015 2017-04-23 13:17:15 +02:00
José Valim 99b8d36945 Read compiler option directly from the function that uses it 2017-04-22 13:18:36 +02:00
Andrea Leopardi 24fb49305c Add Process.cancel_timer/2 (#6014) 2017-04-21 10:45:23 +02:00
Aleksei Magusev 5904879412 Fix quoting of bitstring literals 2017-04-20 16:35:49 +02:00
José Valim 64efa0ac69 Do not raise when expanding dynamic size 2017-04-16 17:30:46 +02:00
Aleksei Magusev b3957a6b5b Improve naming of errors in elixir_expand 2017-03-26 15:14:14 +02:00
Aleksei Magusev c60ebb90bb Use "option" instead of "keyword" in error message for alias 2017-03-26 15:14:14 +02:00
Andrea Leopardi ed1c9489d4 Replace compile_error/4 with form_error/4 in elixir_erl_compiler (#5925) 2017-03-25 17:02:59 +01:00
Jeff Kreeftmeijer efa05882d0 Restore (deprecated) Integer.to_char_list/2 (#5928) 2017-03-25 14:05:54 +01:00
José Valim c5a3ca4cdb Properly inline code and remove warnings 2017-03-23 19:01:13 +01:00
Andrea Leopardi b8371afbfb Replace compile_error/4 with form_error/4 in elixir_import (#5916) 2017-03-23 08:30:46 -07:00
Gal Tsubery 9d8ae7d287 Validate options for comprehension (#5907)
This change raises error when invalid keys are give to "for" loops and
prevents silent errors.
2017-03-21 19:41:08 +01:00
Gal Tsubery c6766f4b2b Add float overflow error message to Tokenizer (#5893) 2017-03-16 17:20:56 +00:00
eksperimental 7c9cb0db81 Inline functions in Process module 2017-03-16 09:48:54 +01:00
Eksperimental 7357f56526 Add nonempty_charlist/0 built-in type (#5879) 2017-03-16 09:46:19 +01:00
José Valim 6d122fa352 Clarify docs 2017-03-15 16:04:36 +01:00
José Valim 3404a6fd13 Solve race conditions on struct dispatch 2017-03-15 15:46:52 +01:00
José Valim 767f7ee2bb Do not allow PIDs and References to survive function-based AST 2017-03-06 23:37:22 +01:00
José Valim c6a38017f5 Update elixir_parser.yrl 2017-03-05 20:45:51 +01:00
José Valim 8418666d84 Fix bootstraping of elixir_bitstring 2017-03-05 18:42:38 +01:00
José Valim ba24a2fef8 Inline binaries inside interpolation 2017-03-05 18:10:11 +01:00
José Valim 657e36b1d8 Provide more examples when solving comma conflict 2017-03-05 16:56:24 +01:00
Aleksei Magusev b66b76832f Mention and/2 and or/2 operators in the "unsafe_var" warning 2017-02-25 23:13:58 +01:00
Aleksei Magusev 4934321c06 Remove unnecessary clause for "unsafe_var" handling
Since 2e301f4910 it is not needed.
2017-02-25 19:12:49 +01:00
Aleksei Magusev 5a942967c7 Remove unnecessary clause for "with" translation
It is not needed since c4b16009f5.
2017-02-25 14:16:33 +01:00
José Valim 7dbb01f898 No longer use dicts for building specs form 2017-02-25 11:27:44 +01:00
José Valim 3625f0d8be Keep ?var_context per module to avoid chance of conflicts 2017-02-24 01:29:44 +01:00
José Valim c08aa189b1 Do not require size for bound literals 2017-02-24 00:38:59 +01:00
José Valim 5d6961fd92 Check for float size on elixir_bitstring 2017-02-24 00:29:01 +01:00
José Valim 4e0b33a43a Check for binary size in bitstring matches 2017-02-24 00:29:01 +01:00
José Valim 99892760de Split bitstring logic into proper modules 2017-02-23 23:53:12 +01:00
José Valim d84eadb45f Improve checking of bitstrings 2017-02-23 22:55:35 +01:00
José Valim e90b103d06 Use noenv_forms in code evaluation 2017-02-23 14:35:47 +01:00
José Valim d1daf3ed40 Support custom backends (undocumented behaviour for now) 2017-02-23 14:27:17 +01:00
José Valim 50e6487879 Move beam building to elixir_erl 2017-02-23 13:42:41 +01:00
José Valim 102a8a3fa8 Add elixir_erl_compiler 2017-02-23 13:15:26 +01:00
José Valim 412d5f5661 Start refactoring on elixir_compiler 2017-02-23 13:15:26 +01:00
José Valim 2eb8490f9a Add prematch_vars 2017-02-23 10:43:09 +01:00
Aleksei Magusev 0f1f773764 Use elixir instead of Elixir for var_context/0 2017-02-21 21:01:28 +01:00
Aleksei Magusev ec9248e51d Add var_context/0 helper macro 2017-02-21 21:01:28 +01:00
Aleksei Magusev a4fee53571 Use generated/1 helper macro in elixir_def 2017-02-21 21:01:28 +01:00
José Valim 300acb518e Deprecate parens as nil and support guards on funs with zero arity
Closes #5799
2017-02-21 13:06:43 +01:00
José Valim 5a92a579c7 Ensure we won't change line numbers for earlier Erlang versions 2017-02-20 23:44:16 +01:00
José Valim a7316e752f Fix how the generated annotation is handled in Elixir 2017-02-20 23:14:16 +01:00
Andrea Leopardi 03a16c7496 Unify formatting of some common expansion errors (#5797) 2017-02-20 17:04:33 +01:00
Andrea Leopardi c775ab6db2 Replace elixir_errors:compile_error/4 with form_error/4 in elixir_map 2017-02-20 13:24:24 +01:00
Andrea Leopardi 358b3fc938 Replace elixir_errors:compile_error/4 with form_error/4 in elixir_fn 2017-02-20 12:49:24 +01:00
Andrea Leopardi 1b3a2fc7cf Replace compile_error/4 with form_error/4 in elixir_clauses 2017-02-20 12:19:41 +01:00
Andrea Leopardi 46d7ff9902 Unify the error we raise when cond/case/etc don't receive clauses (#5796)
Before this, we raised one error if we passed a list with some non-clauses in
it, and a different error if we passed a non-list.
2017-02-20 11:54:23 +01:00