Пример #1
0
        private IEnumerable <VariableType> GetLocalConstants(string scope)
        {
            SymbolTable table = GetScopeSymbols(scope);

            return(table.Where(kv => kv.Value.kind == Kind.CONST)
                   .OrderBy(kv => kv.Value.pos));
        }
Пример #2
0
        private IEnumerable <VariableType> GetParams(string scope)
        {
            SymbolTable table = GetScopeSymbols(scope);

            return(table.Where(kv => kv.Value.kind == Kind.PARAM)
                   .OrderBy(kv => kv.Value.pos));
        }