parser.h 710 B

123456789101112131415161718
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. bool parse(); /* (line_p l, *l_out; offset nbytes;
  7. * int level; int (*action0) ())
  8. * This is a recursive descent parser for
  9. * EM expressions.
  10. * It tries to recognize EM code that loads exactly
  11. * 'nbytes' bytes on the stack.
  12. * 'l' is the last instruction of this code.
  13. * On toplevel, when an expression has been
  14. * recognized, the procedure-parameter
  15. * 'action0' is called, with parameters: the first and
  16. * last instruction of the expression and the number of
  17. * bytes recognized.
  18. */