Esempio n. 1
0
 void CompileOperationTokens(List<MmlOperationUse> data, TokenStream stream)
 {
     data.AddRange (new Parser.MmlParser (stream.Source).ParseOperations ());
 }
Esempio n. 2
0
        MmlSemanticVariable BuildVariableDeclaration(MmlVariableDefinition src)
        {
            var ret = new MmlSemanticVariable (src.Name, src.Type);

            if (src.DefaultValueTokens.Count == 0)
                return ret;

            var stream = new TokenStream (src.DefaultValueTokens, src.Location);
            ret.DefaultValue = new Parser.MmlParser (stream.Source).ParseExpression ();

            return ret;
        }