/// <summary> /// Parse message text into sequence of macro statements /// </summary> /// <returns></returns> bool ParseMessage() { if (Parser == null) { var parser = MacroParser.Get(); if (parser == null) { return(ErrorMsg("Parser error")); } Parser = parser; } var macroLines = Parser.Parse(Message); if (macroLines == null) { return(ErrorMsg("Parse error")); } MacroLines = macroLines; return(NoError()); }
public static MacroParser Get() { var _this = new MacroParser(); return(_this.Initialize() ? _this : null); }