Skip to content

Commit

Permalink
Merge pull request #104 from Eclalang/issue-#103-remove
Browse files Browse the repository at this point in the history
fixed murloc bug
  • Loading branch information
tot0p authored Dec 13, 2023
2 parents ea520c1 + 3042978 commit 30c3e78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions DEMO/Test/murloc.ecla
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import "console";
mgrlgrl;
4 changes: 3 additions & 1 deletion parser/Parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ func (p *Parser) ParseFile() *File {
// ParseNode parses a node from the current token deciding checking if the token is text or other
func (p *Parser) ParseNode() Node {
if p.CurrentToken.TokenType == lexer.MURLOC {
p.HandleFatal("Mrgle, Mmmm Uuua !")
tempStmt := MurlocStmt{MurlocToken: p.CurrentToken}
p.Step()
return tempStmt
}
if p.CurrentToken.TokenType != lexer.TEXT {
tempExpr := p.ParseExpr()
Expand Down

0 comments on commit 30c3e78

Please sign in to comment.