ligo/src/passes/1-parser/pascaligo
Christian Rinderknecht dad9b0f816 Refactoring of the AST and simplfier of PascaLIGO.
Some weeks ago, anonymous functions as expressions were added to
PascaLIGO, unfortunately in a manner that allowed in theory for
contexts in which a named function was found when an anonymous was
expected, and vice-versa. That explains that the simplifier had two new possible errors:

   * unexpected_anonymous_function
     ("you provided a function declaration without name")
   * unexpected_named_function

I changed the AST and the parser so that function expressions
correspond to anonymous functions (without block) and function
declarations correspond to named functions.

I also removed a error in the simplifier, which was unused:

   * bad_bytes
     ("you provided a function expression with a name (remove it)")
2020-01-09 17:26:07 +01:00
..
Doc Fixed the printing of some AST nodes. 2019-11-06 17:23:49 +01:00
Misc Removed temporary Emacs file. 2020-01-09 15:55:58 +01:00
Stubs Refactoring of the parsers 2019-12-15 17:46:08 +01:00
Tests Refactoring of comments (for [dune build @doc]). 2019-12-13 12:21:52 +01:00
.gitignore Added .gitignore for all syntaxes. 2019-12-26 14:13:19 +01:00
.LexerMain.tag more refactoring 2019-09-10 12:42:49 +02:00
.links Sharing standalone lexers and parsers, and parser error API. 2020-01-04 19:49:22 +01:00
.Parser.mly.tag Fixed a tag file (local build of PascaLIGO with my Makefile). 2019-12-18 22:17:49 +00:00
.ParserMain.tag more refactoring 2019-09-10 12:42:49 +02:00
.unlexer.tag Added unlexer for PascaLIGO. 2019-12-17 15:58:27 +00:00
AST.ml Refactoring of the AST and simplfier of PascaLIGO. 2020-01-09 17:26:07 +01:00
check_dot_git_is_dir.sh more refactoring 2019-09-10 12:42:49 +02:00
dune Added new error for duplicated record fields. 2020-01-09 14:26:47 +01:00
LexerMain.ml Sharing standalone lexers and parsers, and parser error API. 2020-01-04 19:49:22 +01:00
LexToken.mli Added support for language-specific parse errors for PascaLIGO: 2020-01-08 16:39:52 +01:00
LexToken.mll Added support for language-specific parse errors for PascaLIGO: 2020-01-08 16:39:52 +01:00
ParErr.ml [WIP] Adding the infrastructure for supporting the incremental API of Menhir. 2019-12-20 16:44:03 +01:00
Parser.mly Refactoring of the AST and simplfier of PascaLIGO. 2020-01-09 17:26:07 +01:00
ParserLog.ml Refactoring of the AST and simplfier of PascaLIGO. 2020-01-09 17:26:07 +01:00
ParserLog.mli Refactoring of comments (for [dune build @doc]). 2019-12-13 12:21:52 +01:00
ParserMain.ml Added new error for duplicated record fields. 2020-01-09 14:26:47 +01:00
ParToken.mly Refactoring of the parsers 2019-12-15 17:46:08 +01:00
pascaligo.ml more refactoring 2019-09-10 12:42:49 +02:00
SParserMain.ml Printing of tokens from the AST is now done in a Buffer.t 2019-10-09 16:07:13 +02:00
SyntaxError.ml Added new error for duplicated record fields. 2020-01-09 14:26:47 +01:00
SyntaxError.mli Added new error for duplicated record fields. 2020-01-09 14:26:47 +01:00
unlexer.ml Added unlexer for PascaLIGO. 2019-12-17 15:58:27 +00:00