--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/10bef205-098c-48c0-85ba-f07b0ab6f76b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/70ed9a31-c0db-43d4-b217-e6dbff5b2824%40googlegroups.com.
brandon@brandon-OEM ~/ATS-Postiats-contrib/projects/SMALL/Calculator/Gradle $ echo $JNI
/home/brandon/ATS-Postiats-contrib/contrib/JNI
brandon@brandon-OEM ~/ATS-Postiats-contrib/projects/SMALL/Calculator/Gradle $ patsopt -DATS JNI_targetloc=\"${JNI}\" -d Calculator.dats | grep JNI
/home/brandon/ATS-Postiats-contrib/contrib/JNI/SATS/jni.sats: 249(line=15, offs=1) -- 284(line=17, offs=3)
#include "JNI/CATS/jni.cats"
ATSdyncst_mac(atscntrb_JNI_GetStringUTFChars)
ATSdyncst_mac(atscntrb_JNI_ReleaseStringUTFChars)
ATSdyncst_mac(atscntrb_JNI_RaiseExceptionByClassName)
ATSINSflab(__patsflab_JNI_eval):
ATSINSmove(tmp960, atscntrb_JNI_GetStringUTFChars(arg0, arg2)) ;
ATSINSmove_void(tmp962, atscntrb_JNI_ReleaseStringUTFChars(arg0, arg2, tmp960)) ;
ATSINSmove_void(tmp964, atscntrb_JNI_RaiseExceptionByClassName(arg0, ATSPMVstring("java/lang/IllegalArgumentException"), ATSPMVstring("ParsingError"))) ;
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/a3e802b0-ee6d-4d00-9746-433624984b6d%40googlegroups.com.
If you can already generate *_dats.c, it means the following line worked:
staload JNI = "{$JNI}/SATS/jni.sats"
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/e7fbc06e-c597-4f42-b473-acc81e664371%40googlegroups.com.
You can also do it this way
patsopt -DATS JNI_targetloc=\"${JNI}\" ...
if you set JNI is as an environment variable.
On Wednesday, December 10, 2014 12:33:37 PM UTC-5, gmhwxi wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/7df46954-3f6f-48e4-999d-bf0c448f7f34%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAORbNRpYFTW3_JQapuWQr9zyQ6j%3D6rXH52iKeQ%3DhxJ2avB%3D60w%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/CAPPSPLpa1rsSj1HTt6cKvevC19LhTMepJ2TUxVKmXbrc-tceUQ%40mail.gmail.com.
You can set it as follows:
#define JNI_targetloc "$PATSHOMERELOC/contrib/JNI"
1. The character '_' can be used in path names
2. Say you use $FOO but FOO is not defined (or defined as a non-string), the $FOO changes to FOO.
3. Recursive substitution is not supported (it can be easily supported if needed).