sclass EnglishDateParser > DateStructures {
  new TransformersOnObjects too;
  
  record Unparsed(LS tok) {}
  
  class ParseYear extends VF1<Unparsed> {
    public void get(Unparsed u) {
      for (LS tok2 : tokenPrefixLists(1, u.tok)) {
        ret WithProbability(1.0-0.9*l(tok2), );
    }
  }
  
  SomeDate parse(S s) null {
    LS tok = javaTok(s);
    too.add(Unparsed(tok));
    
    transformers.add(ParseYear);

    // let's try to parse a year just to get started
    
    pm.addState(new ScanFromToken(1));
  }
}