bigloo

How to circumvent the “Method too large” error in Java Compilation?

一世执手 提交于 2020-06-23 06:58:06
问题 I have a parser written in bigloo scheme functional language which I need to compile into a java class. The whole of the parser is written as a single function. Unfortunately this is causing the JVM compiler to throw a "Method too large" warning and later give "far label in localvar" error. Is there any possible way where I can circumvent this error? I read somewhere about a DontCompileHugeMethods option, does it work? Splitting the function doesnt seem to be a viable option to me :( !! 回答1:

Static signature for higher order function in Bigloo Scheme

吃可爱长大的小学妹 提交于 2019-12-11 09:50:25
问题 Does anyone know how to create a static signature for a higher order function in the module export section in the Bigloo Scheme language? Here is how far I got (module test (export (adder ::double))) (define (adder x) (lambda (y) (set! x (+ x y)) x)) The following will work, but I want to keep all the type data in the module declaration (module test (export (adder ::double))) (define (adder x) (lambda (y::double)::double (set! x (+ x y)) x)) 来源: https://stackoverflow.com/questions/12100256