Skip to main content

StackOverflow while generating a parser

rascal-0.40.17

Synopsis

Simple parser generation produces a StackOverflow exception.

Description

To be able to generate parsers Rascal uses stack space from the Java Virtual Machine (JVM).

If you get exceptions better configure your JVM with this -Xss32m

  • For Eclipse, this configuration goes into your eclipse.ini file. See Editing Eclipse Ini for more information.
  • On the commandline, you can use java -Xss32m ...
  • In VScode the Rascal language server already configures this automatically.
  • The same for the Rascal Maven plugins; they are configured with big stack sizes.