Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java @ 22081:ff531952a91c
Making sure IOException from TruffleLanguage.parse method is correctly propagated to TruffleVM.eval caller.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 14 Aug 2015 13:57:12 +0200 |
parents | a7ca9e9a1d51 |
children | 0058a9461865 |
comparison
equal
deleted
inserted
replaced
22080:65e9fbb40e51 | 22081:ff531952a91c |
---|---|
118 * @param context a {@link Node} defining context for the parsing | 118 * @param context a {@link Node} defining context for the parsing |
119 * @param argumentNames symbolic names for parameters of | 119 * @param argumentNames symbolic names for parameters of |
120 * {@link CallTarget#call(java.lang.Object...)} | 120 * {@link CallTarget#call(java.lang.Object...)} |
121 * @return a call target to invoke which also keeps in memory the {@link Node} tree representing | 121 * @return a call target to invoke which also keeps in memory the {@link Node} tree representing |
122 * just parsed <code>code</code> | 122 * just parsed <code>code</code> |
123 * @throws IOException thrown when I/O or parsing goes wrong | 123 * @throws IOException thrown when I/O or parsing goes wrong. Here-in thrown exception is |
124 * propagate to the user who called one of <code>eval</code> methods of | |
125 * {@link TruffleVM} | |
124 */ | 126 */ |
125 protected abstract CallTarget parse(Source code, Node context, String... argumentNames) throws IOException; | 127 protected abstract CallTarget parse(Source code, Node context, String... argumentNames) throws IOException; |
126 | 128 |
127 /** | 129 /** |
128 * Called when some other language is seeking for a global symbol. This method is supposed to do | 130 * Called when some other language is seeking for a global symbol. This method is supposed to do |