Esempio n. 1
0
        public static void DefineInGlobal(
			string name,
			mysFunctionGroup fg,
			mysSymbolSpace global
		)
        {
            mysSymbol symbol = global.Create( name );
            global.Define( symbol, new mysToken( fg ) );
        }
Esempio n. 2
0
        public mysState()
        {
            nameSpaces = new Dictionary<string, mysSymbolSpace>();
            exposedAssemblies = new List<Assembly>();

            Global = new mysSymbolSpace();

            Global.Define(
                Global.Create( "true" ),
                new mysToken( true )
            );

            Global.Define(
                Global.Create( "false" ),
                new mysToken( false )
            );

            nameSpaces.Add( "global" , Global );

            mysBuiltins.Setup( Global );
        }