Changeset 2369


Ignore:
Timestamp:
Feb 10, 2007, 1:18:25 PM (14 years ago)
Author:
roman
Message:

CompilerEnvironment?

Location:
devel-tools/trunk/eclipse/org.refal.plus.comp/src/org/refal/plus/comp
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.plus.comp/src/org/refal/plus/comp/Checker.java

    r2279 r2369  
    77public class Checker {
    88
    9         public static void checkRf(PushbackReader reader, String fileName,
    10                         MsgHandler msgHandler) {
     9        private static void checkModuleImplementation(PushbackReader reader,
     10                        String fileName, MsgHandler msgHandler) {
    1111
    1212                Scanner scanner = new Scanner(reader, fileName, msgHandler);
    1313                AstImplem astImplem = Parser.parseImplem(scanner, fileName, msgHandler);
    14                 if( msgHandler.getErrorCount() > 0 )
     14                if (msgHandler.getErrorCount() > 0)
    1515                        return;
    1616
    1717                NameChecker.check(astImplem, msgHandler);
    18                 if( msgHandler.getErrorCount() > 0 )
     18                if (msgHandler.getErrorCount() > 0)
    1919                        return;
    2020
     
    2424        }
    2525
     26        public static void checkModuleImplementation(CompilerEnvironment environment) {
     27                checkModuleImplementation(environment.getImplemReader(), environment
     28                                .getModuleName(), environment.getMsgHandler());
     29        }
    2630}
Note: See TracChangeset for help on using the changeset viewer.