Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: tp.cpp
- Revision:
- 0:4ab1392a0142
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tp.cpp Sun Oct 07 11:49:09 2012 +0000
@@ -0,0 +1,19 @@
+#include "tp.h"
+#include "vm.h"
+
+tp_obj tp_None = {TP_NONE};
+
+#if TP_COMPILER
+void tp_compiler(TP) {
+#include "bc.h"
+ tp_import(tp,0,"tokenize",tp_tokenize);
+ tp_import(tp,0,"parse",tp_parse);
+ tp_import(tp,0,"encode",tp_encode);
+ tp_import(tp,0,"py2bc",tp_py2bc);
+ tp_call(tp,"py2bc","_init",tp_None);
+}
+#else
+void tp_compiler(TP) { }
+#endif
+
+/**/