@@ -0,0 +1,1650 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0A%0Apackage relex.output;%0A%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.util.ArrayList;%0Aimport java.util.Scanner;%0A%0A/**%0A *%0A * @author opencogdeveloper%0A */%0Apublic class ScopeVariables%0A %7B%0A    %0A    private final  String scopefile=%22./data/varscope.txt%22;%0A    private ArrayList%3CString%3E scope =new ArrayList();%0A    %0A    public ArrayList%3CString%3E  loadVarScope()%0A        %7B%0A           File file = new File(scopefile);%0A%09%09Scanner input = null;%0A%09%09try %0A                %7B%0A%09%09%09input = new Scanner(file);%0A%09%09%7D %0A                catch (FileNotFoundException e) %0A                %7B%0A%09%09%09%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%09%09if (input != null)%0A%09%09%7B%0A%09%09%09%0A%0A%09%09%09while (input.hasNext())%0A%09%09%09%7B%0A%09%09%09%09%0A%09%09%09%09String nextLine = input.nextLine();%0A                               %09if (null == nextLine) break;%0A                                if (!nextLine.equals(%22%22))%0A                                scope.add(nextLine);%0A%0A%09%09%09%7D%0A%09%09%09%09%0A%0A%09%09%09input.close();%0A                        %0A    %0A                %7D%0A               %0A               return getScope();%0A        %7D%0A     %0A    public  ArrayList%3CString%3E getScope()%0A    %7B %0A        ArrayList%3CString%3E sVar= new ArrayList%3CString%3E();%0A        String temp%5B%5D;%0A        %0A        for( String  var:scope)%0A        %7B%0A          %0A          temp=var.substring( (var.indexOf(%22%5B%22)+1),(var.indexOf(%22%5D%22))).split(%22,%22);%0A            for( String  y :temp)%0A            %7B%0A                          sVar.add(y);%0A            %7D%0A        %7D%0A         return sVar;%0A      %7D%0A   %0A    %0A   %0A%7D

add ScopeVariable.java for maybe rule