Skip to content

Instantly share code, notes, and snippets.

@kakkun61
Created December 22, 2011 06:50
Show Gist options
  • Save kakkun61/1509288 to your computer and use it in GitHub Desktop.
Save kakkun61/1509288 to your computer and use it in GitHub Desktop.
Java Advent Calendar 2011 code 2
public class Main {
public static void main (String[] args) {
try {
Parser parser = new Parser(System.in);
parser.List();
} catch (TokenMgrError ex) {
System.out.println("字句解析エラー:" + ex.getMessage());
} catch (ParseException ex) {
System.out.println("構文解析エラー:" + ex.getMessage());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment