Commit Graph
203 Commits
Author SHA1 Message Date
José Valim 563ca3fb58 Remove extra parens 2012-10-09 21:34:30 +02:00
Yehuda Katz b2e96d3901 More Calendar implementation:
* from_tuple
* to_tuple
* add
* subtract
2012-10-09 16:21:37 +02:00
José Valim 54224c0a61 Support unary plus and minus in Macro.term? 2012-10-09 07:56:34 +02:00
Yurii Rashkovskii c8aab86122 Add Macro.term?/1 2012-10-08 21:01:20 -07:00
José Valim ee69cb4f74 Avoid false negatives in protocol dispatch, closes #503 2012-10-08 16:00:27 +02:00
Yurii Rashkovskii 37b4073435 cp_r/c test file should be managed in tests' setup/teardown
The reason for this is because if it is stored in the repository, reltool can't build elixir's release.
2012-10-07 02:02:24 -07:00
José Valim 69e36c731c Simplify __scope__ API 2012-10-05 18:26:52 -07:00
José Valim 626ed9532b Erlang. syntax is deprecated in favor of simply using atoms 2012-10-05 17:08:22 -07:00
José Valim fac57e78b2 Ensure Kernel.__info__(:functions|:macros) returns the complete set 2012-10-05 15:45:28 -07:00
José Valim 4dcff67b47 Unify Regex and String APIs, closes #505 2012-10-04 16:25:04 -07:00
José Valim e6dba433eb Add Module.create 2012-10-03 23:27:34 -07:00
Devin Torres bdb14b3d2d Separate sigil tests into their own test case 2012-10-01 15:29:34 -05:00
Yehuda Katz 84a5404468 Added initial work on Calendar module 2012-09-29 20:20:08 -07:00
José Valim a22530baf9 Simplify import api 2012-09-28 15:48:23 -07:00
José Valim 4859264fe3 Import ignores function/macros starting with underscore, default callbacks to underscore style 2012-09-27 16:00:26 -07:00
José Valim 010faad0ce Improve tests for bitstring macros 2012-09-26 23:30:45 -05:00
José Valim e42840bf81 Allow macros as bitstrings specifiers 2012-09-26 20:43:25 -05:00
José Valim 78d80334c2 Merge pull request #485 from bellthoven/string_improvements
String improvements
2012-09-23 21:55:43 -07:00
Gustavo Dutra 76eef91ff3 Refactoring in order to move the logic to functions signatures 2012-09-23 14:49:31 -03:00
José Valim e9ff6a57da Add nil? macro 2012-09-23 12:09:22 -05:00
José Valim fe788964bd Add optional comma in lists, tuples, bit strings and keywords, closes #479 2012-09-23 11:43:38 -05:00
Rafael Mendonça França cc624348f3 Whitespaces ✂️ [ci skip] 2012-09-21 17:21:18 -03:00
Gustavo Dutra 7ef9edd523 Implemented String.at/2 2012-09-20 13:08:35 -03:00
Gustavo Dutra 8788e82d1c Implemented String.length/1 2012-09-20 13:08:35 -03:00
Gustavo Dutra 8a318256e0 Implemented String.last/1 2012-09-20 13:08:35 -03:00
Gustavo Dutra 909a4eb33a Implemented String.first/1 2012-09-20 13:08:35 -03:00
Gustavo Dutra 984dc056ee Refactored String.codepoints to use String.codepoint which in now the main entry point for utf8 strings 2012-09-20 13:08:35 -03:00
ILYA Khlopotov 52d12a35fb Implementation of to_list macro for Record.defmacros 2012-09-19 18:34:18 -07:00
ILYA Khlopotov 602ee253b8 Implementation of to_keywords macro for Record.defmacros 2012-09-19 18:32:38 -07:00
ILYA Khlopotov 6d2c2867c4 Get macro implementation for Record.defmacros 2012-09-19 11:20:35 -07:00
José Valim fed42dc885 Merge pull request #480 from guedes/implementing_codepoints
Implementing codepoints
2012-09-18 05:12:38 -07:00
José Valim b2037b0fcc Module.read_attribute and Module.add_attribute deprecated
In favor of `Module.get_attribute` and `Module.put_attribute`
which mimics Dict API
2012-09-18 13:51:32 +02:00
José Valim a0255b6ef8 Simplify Enum protocol 2012-09-17 22:32:08 +02:00
Dickson S. Guedes e5d000e672 adding more tests 2012-09-16 16:28:23 -03:00
Dickson S. Guedes cd8837752f Merge branch 'master' into implementing_codepoints 2012-09-16 11:53:25 -03:00
Dickson S. Guedes 5932ee6013 supporting more codepoints 2012-09-16 11:52:27 -03:00
José Valim 20f1115f50 Enum.split_with -> Enum.split_while 2012-09-15 21:44:43 +02:00
Yurii Rashkovskii 9e835246d6 defmodule returns module name, binary and the result
Previously, 58eea96fc2 was
attempting to solve the ambiguity of records and defmodule result.

This solves the problem completely by tagging defmodule results with
the :module atom and it brings the module name back into the tuple
2012-09-13 12:35:21 -07:00
José Valim d025e9f149 Fix regression in parser 2012-09-13 14:01:21 +02:00
José Valim 58eea96fc2 defmodule only returns the result and the binary
We avoid returning { module, binary, result } because
it can be mistakenly confused as a record named module.
Before this patch, defrecord Foo, bar: nil, baz: nil
in IEx was returning:

    Foo[bar: <<binary>>, baz: nil]
2012-09-13 13:56:43 +02:00
José Valim 69c198630c Inspect accepts limit and raw as options 2012-09-13 13:23:10 +02:00
José Valim 27ba6c644b Update inspect on bitstring to use new notation 2012-09-13 11:30:55 +02:00
José Valim e32380ea6c Keep Binary.Inspect (no need to rename it) 2012-09-13 11:30:55 +02:00
José Valim e4ad1c14e4 Docs for functions without implementation are automatically marked as defcallback 2012-09-12 12:59:22 +02:00
José Valim 2431aa5183 Module.split also accepts binaries 2012-09-12 11:26:22 +02:00
Dickson S. Guedes 93885ec48b initial working on codepoints 2012-09-11 19:59:42 -03:00
José Valim c7a7022bf3 Properly expand other unquote expressions 2012-09-11 22:19:31 +02:00
Gustavo Dutra 5bb8cca386 Added more tests 2012-09-11 13:13:19 -03:00
Gustavo Dutra a5cebfbd3a Added support for String.duplicate/2 2012-09-11 12:05:59 -03:00
Gustavo Dutra 41e550aadb Added support for String.replace/3 and String.replace/4 2012-09-11 12:05:59 -03:00