jhaimecando27 / CGrassPLUS

0 stars 0 forks source link

LeA(string): invalid delimiter ";" #3

Closed jhaimecando27 closed 5 months ago

jhaimecando27 commented 5 months ago

Describe the bug Lexical Analyzer doesn't accept valid delimiter

Code

seed
garden()(
    string #hello = "Hello";
    string #world = "World";

    mint("{#hello}, {#world}");
)
plant

Expected behavior String should accept semicolon

Output Pane Result

LexicalAnalyser: UNKNOWN DELIMITER : line 24:3:""Hello";": Invalid Delimeter ";". Expecting Delimeter after ""Hello"": Available (['<', '>', '=', '!'], ['\n', ' ', '+', '-', '*', '/', '%', ';', ')', ']', '}', ',', ':'])
LexicalAnalyser: UNKNOWN DELIMITER : line 24:4:""World";": Invalid Delimeter ";". Expecting Delimeter after ""World"": Available (['<', '>', '=', '!'], ['\n', ' ', '+', '-', '*', '/', '%', ';', ')', ']', '}', ',', ':'])
LexicalAnalyser: UNKNOWN DELIMITER : line 26:6:""{#hello}, {#world}")": Invalid Delimeter ")". Expecting Delimeter after ""{#hello}, {#world}"": Available (['<', '>', '=', '!'], ['\n', ' ', '+', '-', '*', '/', '%', ';', ')', ']', '}', ',', ':'])
LexicalAnalyser: Error Found.

Screenshot image

jhaimecando27 commented 5 months ago

not a problem, nag ka prob lng nung ni reformat yung redef.py sa temp branch. but walang problem sa master branch