Exemplo n.º 1
0
        private void ParseLineContext(bool showMatch = false)
        {
            Match match = parser.LineParser().Match(line);

            if (showMatch) Util.ShowMatch(match);

            if (match.Groups.Count < 6)
            {
                //Util.ShowMatch(match);
                throw new ParseException(line, lineNo, "cannot be parsed");
            }

            this.actor = match.Groups[1].Value.Trim();
            this.command = match.Groups[2].Value.Trim();
            this.text = match.Groups[3].Value.Trim();
            this.label = match.Groups[4].Value.Trim();
            this.meta = match.Groups[5].Value.Trim();
        }