Exemple #1
0
 MmlSourceLineSet ProcessVariableLine(MmlLine line)
 {
     if (in_comment_mode)
         return null;
     var vs = new MmlVariableSource ();
     vs.Lines.Add (line);
     result.Variables.Add (vs);
     return vs;
 }
Exemple #2
0
        void ParseVariableLines(MmlVariableSource src)
        {
            foreach (var line in src.Lines)
                foreach (var entry in aliases)
                    line.Text = line.Text.Replace (entry.Key, entry.Value);
            source.Lexer.SetCurrentInput (src);

            source.Lexer.NewIdentifierMode = true;
            source.Lexer.Advance ();
            int idx = result.Variables.Count;
            ParseVariableList (result.Variables, true);
            for (int i = idx; i < result.Variables.Count; i++)
                src.ParsedNames.Add (result.Variables [i].Name);
            source.Lexer.NewIdentifierMode = false;
        }