Skip to content

Commit f4d06f8

Browse files
committed
#200 - fix
1 parent 06757ed commit f4d06f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Domain/HydraScript.Domain.FrontEnd/Parser/Impl/TopDownParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private ScriptBody Script() =>
8383
private List<StatementListItem> StatementList()
8484
{
8585
var statementList = new List<StatementListItem>();
86-
while (CurrentIsDeclaration() || CurrentIsExpression() || CurrentIs("Print") ||
86+
while (CurrentIsDeclaration() || CurrentIsExpression() || CurrentIs("Output") ||
8787
CurrentIsKeyword("return") || CurrentIsKeyword("break") || CurrentIsKeyword("continue") ||
8888
CurrentIsKeyword("if") || CurrentIsKeyword("while"))
8989
{
@@ -146,7 +146,7 @@ private Statement Statement()
146146
if (CurrentIsKeyword("while"))
147147
return WhileStatement();
148148

149-
if (CurrentIs("Print"))
149+
if (CurrentIs("Output"))
150150
return OutputStatement();
151151

152152
return null!;
@@ -224,7 +224,7 @@ private WhileStatement WhileStatement()
224224
/// </summary>
225225
private OutputStatement OutputStatement()
226226
{
227-
Expect("Print");
227+
Expect("Output");
228228
return new OutputStatement(Expression());
229229
}
230230

0 commit comments

Comments
 (0)