From 2d450397f4e0ea616b5651537844098304b4477d Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Tue, 17 Aug 2021 10:18:48 +0300 Subject: [PATCH] Change the alias from id() to con() --- src/aeso_parser.erl | 6 +++--- src/aeso_syntax.erl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aeso_parser.erl b/src/aeso_parser.erl index e833ca0..4257eb6 100644 --- a/src/aeso_parser.erl +++ b/src/aeso_parser.erl @@ -137,12 +137,12 @@ fundef_or_decl() -> fundef()]). using() -> - ?RULE(keyword(using), con(), optional({keyword(as), id()}), using(get_ann(_1), _2, _3)). + ?RULE(keyword(using), con(), optional({keyword(as), con()}), using(get_ann(_1), _2, _3)). using(Ann, Con, none) -> {using, Ann, Con}; -using(Ann, Con, {ok, {_, Id}}) -> - {using, Ann, Con, Id}. +using(Ann, Con, {ok, {_, Alias}}) -> + {using, Ann, Con, Alias}. pragma() -> Op = choice([token(T) || T <- ['<', '=<', '==', '>=', '>']]), diff --git a/src/aeso_syntax.erl b/src/aeso_syntax.erl index 44c8b7c..13f0930 100644 --- a/src/aeso_syntax.erl +++ b/src/aeso_syntax.erl @@ -54,7 +54,7 @@ -type pragma() :: {compiler, '==' | '<' | '>' | '=<' | '>=', compiler_version()}. -type using() :: {using, ann(), con()} - | {using, ann(), con(), id()}. + | {using, ann(), con(), con()}. -type letval() :: {letval, ann(), pat(), expr()}. -type letfun() :: {letfun, ann(), id(), [pat()], type(), expr()}.