Commit Graph
57 Commits
Author SHA1 Message Date
José Valim 393098ff9e Move compilation options to the code server, closes #205. 2012-04-10 16:27:56 -03:00
José Valim 9896a86f53 Ensure versin can be print 2012-04-06 22:00:25 -03:00
José Valim dbf6325d44 Fail on invalid file input, closes #206 2012-04-05 15:23:54 -03:00
Alexei Sholik 6e542796d6 Make process_options testable 2012-04-05 10:39:34 +03:00
Alexei Sholik 56e80147e1 Fix a bug in enumeration 2012-04-05 10:39:13 +03:00
Alexei Sholik 2f729a5178 Allow passing a wildcard to -pa, -pz and -r options
If the user invokes elixir with a quoted string

    elixir -pa 'deps*/ebin'

then the CLI will receive the literal path 'deps/*/ebin'. That is why
we're better off processing the wildcards ourselves.
2012-04-05 09:58:01 +03:00
José Valim ac41f5e6fb Revert "Allow many files to be passed to iex, closes #203"
This reverts commit 92b29ac94e.

Conflicts:

	bin/elixir
	bin/iex
2012-04-04 11:36:04 -03:00
José Valim 3827b3a575 Revert "Allow multiple paths to be given to -pa and -pz, closes #229"
This reverts commit c3413246cf.
2012-04-04 11:32:45 -03:00
José Valim c3413246cf Allow multiple paths to be given to -pa and -pz, closes #229 2012-04-03 19:44:05 -03:00
José Valim 1514c0371b Rename Env to System, move Code functionality to it. 2012-04-03 18:35:24 -03:00
José Valim dc3ed54541 Start using halt since it has improved semantics in Erlang R15B01. 2012-04-03 12:07:05 -03:00
Alexei Sholik 2ab7b09d8e Rename List.append -> List.concat 2012-03-30 20:55:34 +03:00
José Valim 4530af4927 Initial work on the access protocol. 2012-03-30 12:07:53 +02:00
José Valim 9675cdced6 Code.argv should return a list of binaries. 2012-03-30 09:40:58 +02:00
José Valim 92b29ac94e Allow many files to be passed to iex, closes #203 2012-03-29 13:35:42 +02:00
José Valim 07508096dc Compiler options should be by process. 2012-03-26 23:10:06 +02:00
José Valim d979c7babc Down to 23 failures. 2012-03-25 21:25:24 +02:00
José Valim d815788c52 Compile files using . and inside __MAIN__ 2012-03-25 18:48:20 +02:00
José Valim cd0f128705 More naming related fixes. 2012-03-25 16:53:13 +02:00
José Valim c9f808a6f4 Allow meta compilation. 2012-03-01 18:02:02 +01:00
José Valim 59c582842b No stop shuold not trigger compiler. 2012-02-26 12:44:13 +01:00
José Valim 317f992146 bin/* docs. 2012-02-22 09:02:14 +01:00
José Valim 00abed6e7a Allow module conflicts to be ignored. 2012-02-21 08:04:58 +01:00
José Valim 98852c84c8 Decouple docs and debug_info opts. 2012-02-21 07:35:45 +01:00
José Valim f167eda9c6 Accept docs option when compiling. 2012-02-20 20:59:11 +01:00
José Valim a80386228d Remove the else clause from try, clean up the code. 2012-02-13 23:10:47 +01:00
José Valim 7b1e9aa116 Add --no-stop back. 2012-02-13 23:05:08 +01:00
José Valim 2d6bb6eef4 Add an else clause to try, rely on Erlang.init.stop(). 2012-02-13 22:53:20 +01:00
José Valim f5c1a7ae47 Use & for partial application instead of _. 2012-02-12 12:19:21 +01:00
José Valim 7a736a4da6 Evaluate record values just once. 2012-02-09 08:49:46 +01:00
José Valim 39b1442ffb Clean up function syntax. 2012-02-06 23:28:48 +01:00
José Valim 41d2a7f87e Revert "Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity."
This reverts commit 20f524dae2.
2012-02-06 22:46:24 +01:00
José Valim 20f524dae2 Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity. 2012-02-06 16:39:55 +01:00
José Valim d002248139 Move lib code to the new exception handling format. 2012-02-05 12:08:18 +01:00
José Valim 750ae66b6e More cleanups for easier bootstraping. 2012-01-28 16:20:38 +01:00
José Valim f06e82680a Get rid of exunit now that we can pass multiple args to bin/elixir 2012-01-28 16:02:31 +01:00
José Valim 85e6280a84 Add at_exit hook, closes #107 2012-01-28 14:54:43 +01:00
José Valim ee2c03217e Revert "Get rid of defp in favor of data and @visibility :private."
This reverts commit 20e4b3a5f9.
2012-01-20 22:55:03 +01:00
José Valim 20e4b3a5f9 Get rid of defp in favor of data and @visibility :private. 2012-01-20 19:42:23 +01:00
José Valim eca3bcc5b0 Discourage module nesting, closes #101 2012-01-15 21:06:12 +01:00
José Valim fc961cf40d Simplify try/catch to be more like Erlang's and not require a tuple. 2012-01-11 07:33:44 +01:00
José Valim 5a95eca33c Remove wrong usage of List 2012-01-06 13:19:22 +01:00
José Valim 19950b898b Finish porting CLI tests. 2012-01-05 20:50:19 +01:00
José Valim c7073491ff Start porting Code and CLI tests. 2012-01-05 20:23:53 +01:00
José Valim dac3199eb1 Bump up Code file. 2012-01-05 10:38:11 +01:00
José Valim 18522ab909 Let the compiler do the hard work for you. 2012-01-03 17:17:36 +01:00
José Valim 3f2cf5ce0d Minor improvements. 2012-01-02 13:20:58 +01:00
José Valim 2080e054ab module -> defmodule 2012-01-02 11:08:25 +01:00
José Valim b291bc3712 Remove public/private helpers in favor of defp.
We have two main reasons for this:

1) defmacro cannot be private and private/public gave a general
   feeling that we could simply mark macros as private;

2) public/private works poorly with quoting. Imagine a macro that
   wants to define some method as private:

     quote {
       private
       def foo, do: bar
     }

   This call to private would alter all the functions in the target
   module.

In order to solve 2), we would have to either allow private with a block:

    quote {
      private do
        def foo, do: bar
      end
    }

Or use `private(opts)`:

    quote {
      def foo, do: bar
      private foo: 1
    }

However, none of these approaches explicitly solves 1). That's why we decided
to go with a syntax similar to Clojure's `def-`: defp.

    quote {
      defp foo, do: bar
    }

There is no `defmacrop`, which solves 1), and the visibility always apply
only to the current function, solving 2).
2011-12-30 08:16:22 +01:00
José Valim ece7a55ee4 Nest ALL the modules. 2011-12-29 19:16:05 +01:00