Skip to content

Commit 0b5f6fb

Browse files
author
Sebastiano Merlino
committed
Merge branch 'master' of zencoders.org:ael2lua
Conflicts: ael.y
2 parents efb7d0b + 49c2b86 commit 0b5f6fb

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

ael.y

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@ element: extension
413413
$$ = $1;
414414
}
415415
| word EQ implicit_expr_stat SEMICOLON
416+
{
417+
stringstream ss;
418+
ss << "channel."<<$1 << " = "<<$3<<endl;
419+
$$ = alloc_string((char*)ss.str().data());
420+
destroy_string($1);
421+
destroy_string($2);
422+
}
416423
| LOCAL word EQ implicit_expr_stat SEMICOLON
417424
| SEMICOLON
418425
{
@@ -777,13 +784,13 @@ macro_call: word LPAREN eval_arglist RPAREN
777784
;
778785

779786
application_call_head: word LPAREN
780-
{
781-
stringstream ss;
782-
$1[0] = tolower($1[0]);
783-
ss << "app." << $1 << "(";
784-
$$ = alloc_string((char*)ss.str().data());
785-
destroy_string($1);
786-
};
787+
{
788+
stringstream ss;
789+
$1[0] = tolower($1[0]);
790+
ss << "app." << $1 << "(";
791+
$$ = alloc_string((char*)ss.str().data());
792+
destroy_string($1);
793+
};
787794

788795
application_call: application_call_head eval_arglist RPAREN
789796
{

0 commit comments

Comments
 (0)