system/src/sc/lang/pattern/Pattern.java
public boolean matchSimpleString(String fromStr) {
      if (language == null)
         language = parselet.getLanguage();
      boolean res = language.matchString(fromStr, parselet);
      if (testMode) {
         boolean matchRes = matchString(fromStr);
         if (res != matchRes)
            System.err.println("*** Pattern.testMode error - matchString method and parselet pattern match are not the same for: " + this);
      }
      return res;
   }
// specific parselets so we could implement a simple parsing version in Javascript, rather than using the Pattern object - not sure if it's different or not.
specific parselets so we could implement a simple parsing version in Javascript, rather than using the Pattern object - not sure if it's different or not.
specific parselets so we could implement a simple parsing version in Javascript rather than using the Pattern object - not sure if it ' s different or not .
public boolean matchSimpleString(String fromStr) {
      if (language == null)
         language = parselet.getLanguage();
      boolean res = language.matchString(fromStr, parselet);
      if (testMode) {
         boolean matchRes = matchString(fromStr);
         if (res != matchRes)
            System.err.println("*** Pattern.testMode error - matchString method and parselet pattern match are not the same for: " + this);
      }
      return res;
   }
public boolean matchSimpleString ( String fromStr ) { if ( language == null ) language = parselet . getLanguage ( ) ; boolean res = language . matchString ( fromStr , parselet ) ; if ( testMode ) { boolean matchRes = matchString ( fromStr ) ; if ( res != matchRes ) System . err . println ( "*** Pattern.testMode error - matchString method and parselet pattern match are not the same for: " + this ) ; } return res ; }
specific parselets so we could implement a simple parsing version in Javascript, rather than using the Pattern object - not sure if it's different or not.
specific parselets so we could implement a simple parsing version in Javascript rather than using the Pattern object - not sure if it ' s different or not .