Change the alias from id() to con()

This commit is contained in:
Gaith Hallak 2021-08-17 10:18:48 +03:00
parent 53ba62e423
commit 2d450397f4
2 changed files with 4 additions and 4 deletions

View File

@ -137,12 +137,12 @@ fundef_or_decl() ->
fundef()]). fundef()]).
using() -> 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, none) ->
{using, Ann, Con}; {using, Ann, Con};
using(Ann, Con, {ok, {_, Id}}) -> using(Ann, Con, {ok, {_, Alias}}) ->
{using, Ann, Con, Id}. {using, Ann, Con, Alias}.
pragma() -> pragma() ->
Op = choice([token(T) || T <- ['<', '=<', '==', '>=', '>']]), Op = choice([token(T) || T <- ['<', '=<', '==', '>=', '>']]),

View File

@ -54,7 +54,7 @@
-type pragma() :: {compiler, '==' | '<' | '>' | '=<' | '>=', compiler_version()}. -type pragma() :: {compiler, '==' | '<' | '>' | '=<' | '>=', compiler_version()}.
-type using() :: {using, ann(), con()} -type using() :: {using, ann(), con()}
| {using, ann(), con(), id()}. | {using, ann(), con(), con()}.
-type letval() :: {letval, ann(), pat(), expr()}. -type letval() :: {letval, ann(), pat(), expr()}.
-type letfun() :: {letfun, ann(), id(), [pat()], type(), expr()}. -type letfun() :: {letfun, ann(), id(), [pat()], type(), expr()}.