summaryrefslogtreecommitdiff
path: root/lib/syntax_tools
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add test case to syntax_toolsRoland Karlsson2014-05-091-2/+12
| | | | | | | | The added test case tests a bug when reverting maps in syntax tools.
* | [syntax_tools] Let erl_syntax:concrete() accept the F/A syntaxHans Bolinder2014-04-281-0/+21
| | | | | | | | | | | | | | | | | | Note: `arity_qualifier` nodes are recognized. This is to follow The Erlang Parser when it comes to wild attributes: both {F, A} and F/A are recognized, which makes it possible to turn wild attributes into recognized attributes without at the same time making it impossible to compile files using the new syntax with the old version of the Erlang Compiler.
* | Introduce the attribute -optional_callbacks in the context of behavioursHans Bolinder2014-04-281-0/+5
|/
* Update release notesErlang/OTP2014-04-071-0/+50
|
* Introduce runtime_dependencies in .app filesRickard Green2014-03-201-1/+2
| | | | | | | | | | | | | Most dependencies introduced are exactly the dependencies to other applications found by xref. That is, there might be real dependencies missing. There might also be pure debug dependencies listed that probably should be removed. Each application has to be manually inspected in order to ensure that all real dependencies are listed. All dependencies introduced are to application versions used in OTP 17.0. This since the previously used version scheme wasn't designed for this, and in order to minimize the work of introducing the dependencies.
* Bump versions and ensure that all are "normal" versionsRickard Green2014-03-201-1/+1
| | | | | Ensure all are "normal" versions according to the new version scheme introduced in OTP 17.0
* Correct a contract in the igor moduleHans Bolinder2014-02-251-1/+1
| | | | Thanks Kostis.
* syntax_tools: Fix broken doc links for MapsBjörn-Egil Dahlberg2014-02-241-4/+4
|
* Merge branch 'hb/dialyzer/deprecate_types/OTP-10342'Hans Bolinder2014-02-243-22/+22
|\ | | | | | | | | * hb/dialyzer/deprecate_types/OTP-10342: Deprecate pre-defined built-in types
| * Deprecate pre-defined built-in typesHans Bolinder2014-02-233-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The types array(), dict(), digraph(), gb_set(), gb_tree(), queue(), set(), and tid() have been deprecated. They will be removed in OTP 18.0. Instead the types array:array(), dict:dict(), digraph:graph(), gb_set:set(), gb_tree:tree(), queue:queue(), sets:set(), and ets:tid() can be used. (Note: it has always been necessary to use ets:tid().) It is allowed in OTP 17.0 to locally re-define the types array(), dict(), and so on. New types array:array/1, dict:dict/2, gb_sets:set/1, gb_trees:tree/2, queue:queue/1, and sets:set/1 have been added.
* | Merge branch 'schlagert/fix_basic_appups'Siri Hansen2014-02-242-3/+28
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | * schlagert/fix_basic_appups: Dynamically configure typer_SUITE according to environment Disable hipe_SUITE when environment doesn't support it Make hipe non-upgradable by setting appup file empty Fix missing module on hipe app file template Add test suites performing app and appup file checks Introduce appup test utility Fix library application appup files Fix non-library appup files according to issue #240 OTP-11744
| * Add test suites performing app and appup file checksTobias Schlager2014-02-241-2/+7
| | | | | | | | | | Add the mentioned test suites for *all* library and touched non-library applications.
| * Fix library application appup filesTobias Schlager2014-02-181-1/+21
| | | | | | | | | | | | | | | | | | | | As discussed in issue #240 *all* OTP library applications use the '.*' wildcard as up and down version. This makes library applications always up- and downgradeable. Using the wildcard version obsoletes all maintenance tasks regarding library applications' appup files. Additionally, it prevents upgrade problems caused by automatically included application dependencies when using reltool to create releases. Missing copyright headers are now consistently present.
* | Merge branch 'nox/maps-erl_syntax-fix-docs'Björn-Egil Dahlberg2014-02-211-5/+13
|\ \ | |/ |/| | | | | * nox/maps-erl_syntax-fix-docs: Mention map trees in erl_syntax:type/1 documentation
| * Mention map trees in erl_syntax:type/1 documentationAnthony Ramine2014-02-081-5/+13
| |
* | Merge branch 'nox/eep37/OTP-11537'Björn Gustavsson2014-02-071-0/+8
|\ \ | |/ |/| | | | | * nox/eep37/OTP-11537: Support named funs in erl_prettypr
| * Support named funs in erl_prettyprAnthony Ramine2014-02-011-0/+8
| |
* | Support maps in erl_prettyprAnthony Ramine2014-02-011-0/+26
| |
* | Complete support of maps in erl_syntaxAnthony Ramine2014-01-311-26/+231
|/ | | | | | | | | | | | | | | map_expr/1 map_expr/2 map_expr_argument/1 map_expr_fields/1 map_field_assoc/2 map_field_assoc_name/1 map_field_assoc_value/1 map_field_exact/2 map_field_exact_name/1 map_field_exact_value/1
* Fix representation of named funs in syntax_toolsAnthony Ramine2014-01-291-4/+4
| | | | A named fun's name is a variable name, its type in syntax_tools is named_fun_expr.
* edoc,syntax_tools: Teach Map understandingBjörn-Egil Dahlberg2014-01-281-1/+35
|
* Merge branch 'feat/erl_tidy_print_to_stdout'Siri Hansen2014-01-281-3/+20
|\ | | | | | | | | | | | | | | * feat/erl_tidy_print_to_stdout: Added documenation for the new option describing what it does. Add initial implementation of having erl_tidy print to screen instead of writing to the file provided. The reason for this is that you may want to have an intermediary step between saving the tidied file and using the output. OTP-11632
| * Added documenation for the new option describing what it does.Aaron2014-01-231-0/+7
| |
| * Add initial implementation of having erl_tidyAaron2014-01-231-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | print to screen instead of writing to the file provided. The reason for this is that you may want to have an intermediary step between saving the tidied file and using the output. Use-case personally is wanting to integrate erl_tidy into emacs and tidy buffers, overwriting the current file is generally not how this works in emacs with source code tidiers.
* | 17.0 anchor and broken links fixesLukas Larsson2014-01-271-3/+3
| |
* | Merge tag 'OTP_R16B03-1'Magnus Lidén2014-01-242-1/+33
|\ \ | |/ |/| | | The R16B03-1 release
| * Prepare releaseOTP_R16B03-1Erlang/OTP2014-01-242-1/+33
| |
* | Merge branch 'dgud/test_unicode/OTP-10877'Dan Gudmundsson2014-01-221-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dgud/test_unicode/OTP-10877: sasl test: Quote executable paths (can contain spaces) rt_tools: Handle unicode chars in printouts kernel: code_SUITE fix unicode option Fix (unicode) debug info in test cases stdlib: Fix format if module resides in a unicode directory Fix testing with unicode paths test_server: Fix ts write unicode in config files
| * | Fix testing with unicode pathsDan Gudmundsson2014-01-211-1/+1
| | | | | | | | | | | | re needs unicode option
* | | Merge branch 'maint'Magnus Lidén2014-01-212-3/+34
|\ \ \ | |/ / |/| / | |/
| * Smoke test erl_syntax:revert/1Anthony Ramine2014-01-211-2/+27
| | | | | | | | | | | | | | | | This tries to make bugs like 87156887b7d82a2db53f60441a4af87034cb8789 not happen again. The new test takes each file in the stdlib app, passes their forms through the erl_syntax representation, reverts them and compiles them.
| * Fix reverting of local implicit funs in erl_syntaxAnthony Ramine2014-01-211-1/+7
| | | | | | | | | | | | This partially reverts 290dc2b08a2f92157ac5358fba815f4dbb32f8f2 in which implicit funs were mistakenly thought to be using abstract terms for their name and arity.
* | EEP 37: Funs with namesAnthony Ramine2013-12-121-4/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds optional names to fun expressions. A named fun expression is parsed as a tuple `{named_fun,Loc,Name,Clauses}` in erl_parse. If a fun expression has a name, it must be present and be the same in every of its clauses. The function name shadows the environment of the expression shadowing the environment and it is shadowed by the environment of the clauses' arguments. An unused function name triggers a warning unless it is prefixed by _, just as every variable. Variable _ is allowed as a function name. It is not an error to put a named function in a record field default value. When transforming to Core Erlang, the named fun Fun is changed into the following expression: letrec 'Fun'/Arity = fun (Args) -> let <Fun> = 'Fun'/Arity in Case in 'Fun'/Arity where Args is the list of arguments of 'Fun'/Arity and Case the Core Erlang expression corresponding to the clauses of Fun. This transformation allows us to entirely skip any k_var to k_local transformation in the fun's clauses bodies.
* | Merge tag 'OTP_R16B03'Magnus Lidén2013-12-102-1/+17
|\ \ | |/ | | | | | | | | | | The R16B03 release Conflicts: lib/sasl/vsn.mk
| * Prepare releaseOTP_R16B03Erlang/OTP2013-12-092-1/+17
| |
* | Merge branch 'maint'Henrik Nord2013-11-293-29/+25
|\ \ | |/
| * Remove a useless function clause in erl_syntax_libAnthony Ramine2013-11-111-2/+0
| |
| * Fix transformation of implicit funs in igorAnthony Ramine2013-11-111-14/+19
| | | | | | | | | | | | Function erl_syntax_lib:analyze_implicit_fun/1 should not be called on implicit external funs, as their parts can contain variables instead of atoms and integers.
| * Fix reverting of implicit funsAnthony Ramine2013-11-111-13/+6
| | | | | | | | | | Implicit funs parts in plain AST are no longer in concrete form since Erlang/OTP R15.
* | Convert XML files to UTF-8Hans Bolinder2013-04-196-10/+10
|/
* Prepare releaseOTP_R16BErlang/OTP2013-02-252-1/+15
|
* Update copyright yearsBjörn-Egil Dahlberg2013-02-221-1/+1
|
* Use ~ts for filenamesHans Bolinder2013-02-193-29/+29
|
* [stdlib] Correct handling of Unicode filenamesHans Bolinder2013-02-153-4/+3
|
* Make Unicode correctionsHans Bolinder2013-02-111-1/+1
|
* Prepare releaseOTP_R16A_RELEASE_CANDIDATEErlang/OTP2013-01-292-1/+15
|
* Extend char() to Unicode charactersHans Bolinder2013-01-251-6/+6
| | | | | | | | | | The code related to the introduction of unicode_string() and unicode_char() has been removed. The types char() and string() have been extended to include Unicode characters. In fact char() was changed some time ago; this commit is about cleaning up the documentation and introduce better names for some functions.
* Turn warnings to errors on selected applicationsBjörn Gustavsson2013-01-231-1/+1
|
* Merge branch 'lh/forget-mnemosyne/OTP-10729'Fredrik Gustafsson2013-01-222-62/+0
|\ | | | | | | | | | | * lh/forget-mnemosyne/OTP-10729: Remove what remains of the Mnemosyne code Remove support for the query keyword and query expressions
| * Remove support for the query keyword and query expressionsLoïc Hoguin2013-01-162-62/+0
| |