Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import net.percederberg.grammatica.parser.*;
  2. import java.io.*;
  3.  
  4.  
  5.  
  6. public class Parsuj{
  7.  
  8. public static void main(String[] args) throws ParserCreationException, ParserLogException{
  9. Parsuj parsuj = new Parsuj();
  10. Node node = parsuj.parseArithmetic(System.in);
  11. node.printTo(System.out);
  12. }
  13.  
  14.  
  15. private Node parseArithmetic(InputStream input) throws ParserCreationException, ParserLogException{
  16. Parser parser = null;
  17. parser = new Plik1Parser(new InputStreamReader(input));
  18. return parser.parse();
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement