Пример #1
0
 internal static IEnumerable <LanguageSymbol> MainSymbols(this GMacAst rootAst)
 {
     return
         (rootAst.ChildNamespaces.Concat(
              rootAst.Namespaces().SelectMany(MainSymbols)
              ));
 }
Пример #2
0
        internal GMacAstSymbolsCache(GMacAst rootAst)
        {
            GMacRootAst = rootAst;

            RootSymbol = null;

            InitializeDictionaries(GMacRootAst.MainSymbols());
        }
Пример #3
0
 internal static IEnumerable <ILanguageType> FrameTypes(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(FrameTypes));
 }
Пример #4
0
        internal static IEnumerable <ILanguageType> Types(this GMacAst rootAst)
        {
            var primitiveTypes = new[] { rootAst.BooleanType, rootAst.IntegerType, rootAst.ScalarType };

            return(primitiveTypes.Concat(rootAst.ChildNamespaces.SelectMany(Types)));
        }
Пример #5
0
 internal static IEnumerable <GMacMacro> StructureMacros(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(StructureMacros));
 }
Пример #6
0
 internal static IEnumerable <GMacStructure> FrameStructures(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(FrameStructures));
 }
Пример #7
0
 internal static IEnumerable <GMacFrameMultivector> FrameMultivectors(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(FrameMultivectors));
 }
Пример #8
0
 internal static IEnumerable <GMacConstant> FrameConstants(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(FrameConstants));
 }
Пример #9
0
 internal static IEnumerable <SymbolNamedValue> FrameNamedValues(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(FrameNamedValues));
 }
Пример #10
0
 internal static IEnumerable <GMacNamespace> Namespaces(this GMacAst rootAst)
 {
     return(rootAst.ChildNamespaces.SelectMany(Namespaces));
 }
Пример #11
0
 internal GMacSymbolicMathNames(GMacAst root)
 {
     GMacRootAst = root;
 }