/** Main() minimal pour CUP et JFlex. *
  • Incompatible avec l'option -locations de CUP *
  • Intégrable directement dans une spec CUP : *parser code {: public static void main()... :} */ public final class CupParseMin { @SuppressWarnings("deprecation") public static void main(String[] args) throws Exception { if (args.length!=0) System.setIn(new java.io.FileInputStream(args[0])); new parser(new Yylex(new java.io.InputStreamReader(System.in))).parse(); } }