-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No java code generated #6
Comments
Josh, I saw that the master branch is actively changed these days. Could you please take a look at this? |
Fixed. |
Thank you.
|
This is the result of a custom code generator used in the previous version of JSketch. I'm not exactly sure how this was used in the past, maybe @jsjeon has some input here? I've changed the default behaviour to output the code Sketch produces as opposed to the custom code and added a flag for using the custom code generator (-c). Hope this helps! |
Previously, if things went well, custom code generator will pick up 2 * x (forgot whether it picked up StmtAssign or ExprBinary, but either one), and replaced the holes with it. It sounds like the default behavior is changed? From outputting synthesized Java files to outputting Sketch output (either C file or txt like above)? Because this is "JSketch", a Java sketching tool, I wonder we need an opposite flag, a flag that makes the tool stop at Sketch generation phase and not outputting Java output. Of course its default value should be false, so that the default tool behavior is reserved. |
Thank you for your continuous help! I tried with and without -c option. If -c option was specified, it worked as before (use custom code generator) and if -c option was not specified, the output file is:
How can I identify the synthesized code for hole especially if there are multiple fragments and multiple holes. |
I'm not sure I understand your question. In this example the hole is in mult2, right? Then you would need to look in the code produced by Sketch to see what what synthesised. In this case |
Sorry, I haven't made my question clear. My question is if there are multiple holes in the sketch, how can I match the holes with the output? Does the output will have the same syntactic structure as the sketch except the holes are filled. Thanks! Furthermore, if I want to use some Java libraries will JSKETCH will try with functions in imported packages? |
Yes. If you look at the output it is the code you’ve given to Sketch with the holes filled it. Sketch will also rewrite some of the functions/variables with new names/arguments/etc.
josh
… On Jun 17, 2017, at 2:00 AM, ec0github ***@***.***> wrote:
Sorry, I haven't made my question clear. My question is if there are multiple holes in the sketch, how can I match the holes with the output? Does the output will have the same syntactic structure as the sketch except the holes are filled. Thanks!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#6 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB2ieHJKMkpEPc98qpQ_30qp-qZoDFcYks5sE2uJgaJpZM4NY66o>.
|
In case the functions/variables have been rewritten, how can I match them to the holes? From the positions of the holes? Eric |
For now, yes. Previously JSketch would translate the code back into Java but with some recent changes the code for that is no longer compatible. I’ve opened up an issue to get this working again (#7 <#7>). Hopefully that will answer your question and help you with what you are working on.
josh
… On Jun 17, 2017, at 11:24 PM, ec0github ***@***.***> wrote:
In case the functions/variables have been rewritten, how can I match them to the holes? From the positions of the holes?
Eric
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#6 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB2ieJ9yz7qvfRNHmfF_n70_3Tfav-Hvks5sFJhpgaJpZM4NY66o>.
|
Used the SimpleMath example to test the tools. It executed successfully and the last message it prompted is
"02:58:00 [INFO] java_sk/sketch.py:36 => sketch done: result/output/Test.txt"
However, there is nothing in the folder result/output and found there are files in folder sk_Test which was created during synthesis process
The text was updated successfully, but these errors were encountered: