|
49 | 49 | import java.io.IOException;
|
50 | 50 | import java.nio.file.StandardOpenOption;
|
51 | 51 | import java.util.ArrayList;
|
52 |
| -import java.util.HashMap; |
53 | 52 | import java.util.List;
|
54 | 53 |
|
55 | 54 | import com.oracle.graal.python.builtins.Builtin;
|
56 | 55 | import com.oracle.graal.python.builtins.CoreFunctions;
|
57 | 56 | import com.oracle.graal.python.builtins.Python3Core;
|
58 |
| -import com.oracle.graal.python.builtins.PythonBuiltinClassType; |
59 | 57 | import com.oracle.graal.python.builtins.PythonBuiltins;
|
60 | 58 | import com.oracle.graal.python.builtins.objects.PNone;
|
61 | 59 | import com.oracle.graal.python.builtins.objects.module.PythonModule;
|
@@ -88,7 +86,6 @@ protected List<? extends NodeFactory<? extends PythonBuiltinBaseNode>> getNodeFa
|
88 | 86 | }
|
89 | 87 |
|
90 | 88 | private static final class LocalData {
|
91 |
| - private final HashMap<String, String> bindings = new HashMap<>(); |
92 | 89 | private final List<TruffleString> history = new ArrayList<>();
|
93 | 90 | protected Object completer = null;
|
94 | 91 | protected boolean autoHistory = true;
|
@@ -130,16 +127,9 @@ PNone setCompleter(PythonModule self, Object callable) {
|
130 | 127 | @GenerateNodeFactory
|
131 | 128 | abstract static class ParseAndBindNode extends PythonBinaryBuiltinNode {
|
132 | 129 | @Specialization
|
133 |
| - @TruffleBoundary |
134 |
| - PNone setCompleter(PythonModule self, TruffleString tspec) { |
135 |
| - String spec = tspec.toJavaStringUncached(); |
136 |
| - if (spec.startsWith("tab:")) { |
137 |
| - LocalData data = self.getModuleState(LocalData.class); |
138 |
| - data.bindings.put("tab", spec.split(":")[1].trim()); |
139 |
| - return PNone.NONE; |
140 |
| - } else { |
141 |
| - throw PRaiseNode.raiseStatic(this, PythonBuiltinClassType.NotImplementedError, toTruffleStringUncached("any other binding than 'tab'")); |
142 |
| - } |
| 130 | + static PNone parseAndBind(@SuppressWarnings("unused") PythonModule self, @SuppressWarnings("unused") TruffleString tspec) { |
| 131 | + // TODO implement |
| 132 | + return PNone.NONE; |
143 | 133 | }
|
144 | 134 | }
|
145 | 135 |
|
|
0 commit comments