José Valim
c838bcd3cb
Improve unexpected token error messages
2015-09-01 00:32:46 +02:00
José Valim
970f84382b
Allow operators to work still after comments
...
Closes #3316
2015-08-16 20:11:11 +02:00
José Valim
84830d37ef
Deprecate ?\x in favor of simply 0x
2015-08-16 18:00:10 +02:00
José Valim
dcf6da28d7
Remove warnings from erlang suite
2015-08-12 11:46:32 +02:00
José Valim
aeea7799fa
Use or in left in [a, b, c] as the compiler can opt it better
2015-08-12 11:46:32 +02:00
ꗈ ꘐ ꗈ
add22f4b5b
capture non-symbolic operators (&and/2, ¬/1, &c.)
...
partial fix for issue #3486
pin operator is a different issue and will take some more investgation to find the cause.
2015-08-11 11:25:26 -07:00
Roger Braun
0598f00aef
Allows underscores in binary, octal and hex literals.
2015-06-12 12:55:34 +02:00
eksperimental
61675c3ea8
Add space after comma: Format consistently
2015-03-17 22:55:27 +07:00
Or Neeman
5eed2991c8
Improve tokenization of identifiers and k: v keys
...
Closes #3113 :
- Fix tokenization of `a@b: ` and `A!: `
- Add error for `a@b` (previously tokenized like `a @b`)
- Extend error for `a:b` to cover `a:+`, etc.
- Unify tokenization of upper- and lower-case `k: v` keys
- Fix end-column value for `a: `
- Add tests as appropriate
2015-02-28 12:07:14 -06:00
Or Neeman
06da256d43
Move test for :foo.Bar syntax error
2015-02-14 09:48:38 -06:00
José Valim
5824c1b7c6
Merge pull request #3059 from oneeman/better_error_for_atom_dot_alias
...
Throw syntax error for `:foo.Bar`
2015-02-09 14:48:50 +01:00
eksperimental
84f56d2874
Add positive test case for punctuation in atoms
2015-02-09 18:22:17 +07:00
Or Neeman
76cbf96369
Throw syntax error for :foo.Bar
...
Closes #2986
2015-02-08 16:56:14 -06:00
Alexander Ivanov
b35a683647
Fix column counting in elixir_interpolation.erl
2015-01-06 16:57:00 +02:00
Alexander Ivanov
3177e2ebd0
Count \\ as just one character in column info in tokenizer
2015-01-06 14:49:23 +02:00
Alexander Ivanov
c76a186687
Change location info format in tokenizer
...
Start column counting in tokenizer from 1, store location info in a tuple `{Line, BeginColumn, EndColumn}` instead of a list
2015-01-05 13:35:23 +02:00
Alexander Ivanov
a288ddd326
Add column info in tokenizer, #2987
...
Add column info for each token in elixir_tokenizer.
Change the format of location info from `Line` to `[Line, BeginColumn,
EndColumn]`. Pass the current column after the current line in
`elixir_tokenizer:tokenize`. Reflect the change in related modules.
2015-01-05 03:34:53 +02:00
José Valim
de9feb26d5
Deprecate x.Alias syntax
2014-08-27 12:17:15 -04:00
Eric Meadows-Jönsson
7940d223ec
Move elixir.hrl to src/
2014-08-19 17:00:58 +02:00
Eric Meadows-Jönsson
c6fa951520
Better error message on nbsp
2014-08-19 17:00:58 +02:00
José Valim
e6e71675ac
Make a distinction between eol and ;
2014-08-12 16:27:45 +02:00
José Valim
6a6ba9f50d
Remove deprecated code
2014-08-02 22:35:57 +02:00
José Valim
6874eb7ce8
Deprecate octal and upcase char syntaxes
2014-07-29 20:33:42 +02:00
niku
e68f617e2a
Remove duplicate test
2014-07-29 23:51:24 +09:00
José Valim
9ba77e1ce6
List crypto, compiler and syntax tools as dependencies, closes #2593
2014-07-29 11:42:12 +02:00
Yuki Ito
81ed03ffb2
Parse unary/binary operators regardless of number of spaces
...
closes #2534 .
2014-07-26 20:03:38 +09:00
José Valim
76d6e05399
Ensure case wrapper in cond gets the proper line
2014-07-05 14:45:07 +02:00
José Valim
28264c6792
Improvements to the operator table
...
* |>, <<<, >>> and ^^^ were made left associative
* <, >, <=, >= were given higher precedence than
comparison ones (==, !=, etc)
* xor is deprecated
2014-06-29 16:18:33 +02:00
José Valim
18f5063814
Update (soft) deprecations
2014-06-29 15:13:02 +02:00
José Valim
8f272c4cc8
Start epmd, clean up warnings
2014-06-18 10:50:48 +02:00
José Valim
18aeb78547
Exit with proper test code on test_erlang, closes #2313
2014-05-22 12:21:08 +02:00
José Valim
83ccde4db6
Update CHANGELOG, fix tests and typespecs
2014-05-22 11:29:42 +02:00
José Valim
c22e8e85dc
Convert exceptions to structs
2014-05-16 00:01:49 +02:00
Matheus Lima
07d7d538dc
Adds "Elixir" to check module availability naming list
2014-05-04 11:27:25 +02:00
José Valim
56f15d9f4e
Do not add spaces after { and before }
...
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
José Valim
d33463dcd5
Unify precedence of when, :: and |
2014-03-31 12:28:33 +02:00
José Valim
ecd5b3d8ef
Ensure do can be at the start of its own line, closes #2053
2014-03-13 09:44:01 -07:00
José Valim
cbc03036cb
Merge pull request #2093 from elixir-lang/jv-into
...
Add support for Collectables
2014-03-06 10:50:39 -08:00
José Valim
866acc4f82
Ensure an after clause is generated only if required
2014-03-06 07:00:37 -08:00
Eric Meadows-Jönsson
04e774a4ba
Support interpolation in keyword list atoms
...
key = "foo"
["#{key}": :value]
2014-03-05 16:43:26 +01:00
Yuki Ito
013303a44e
Support end-of-line backslash in quoted expressions
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2014-02-19 12:23:30 +01:00
José Valim
de71ecf195
Remove outdated default args syntax
2014-02-05 14:58:28 +01:00
José Valim
fe2e4a1010
Move from // to \\
2014-01-28 10:50:00 +01:00
José Valim
48b8efe9c6
Ensure proper tokenization of the ... identifier
2014-01-21 20:50:43 +01:00
José Valim
f671e1204c
Change precedence of <- to be the same as other generators
2014-01-16 20:08:55 +01:00
José Valim
5a2e838def
Deprecate <-/2 in favor of send/2
2014-01-14 18:27:41 +01:00
José Valim
53b68887b6
Invert the precedence of | and when
...
Although this adds some drawbacks when it comes to typespecs,
it prepares us for when we have named patterns.
2014-01-11 16:52:46 +01:00
José Valim
df8b216357
Reenable case clause rewriting, closes #1972
2014-01-04 10:45:18 +01:00
José Valim
79faa1f706
Do not export case and receive vars
2014-01-04 10:45:13 +01:00
José Valim
5e2ea082d1
Deprecate __FILE__ in favor of __DIR__ or __ENV__.file
2014-01-02 18:10:59 +01:00