Perl 6有REPL shell吗?

时间:2015-12-28 13:39:27

标签: read-eval-print-loop perl6

我知道我可以使用不带参数的perl6来启动一个最小的REPL shell,但是我缺少标签完成,readline功能,对象检查等...所以我想知道是否有更好的REPL shell,如用于Python的IPython或用于Perl 5的Reply

运行perl6时,我收到以下警告:

$ perl6
I ran into a problem while trying to set up REPL completions:
Continuing without tab completions

但我不知道如何解决这个问题。

1 个答案:

答案 0 :(得分:7)

Perl6 REPL并未完全赶上所有比赛。但除了使用Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); toolbar.setPadding(0, getStatusBarHeight(), 0, 0); ...... ...... public int getStatusBarHeight() { int result = 0; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = getResources().getDimensionPixelSize(resourceId); } } return result; } 之外,还有 一些相关模块,例如

根据您要查找的内容,Debugger::UI::CommandLine可能也会引起您的兴趣(Rakudo已经安装了相应的二进制文件counter = 0; empty = '000' columns = [] records = [] for col in Dataset.columns: columns.append(col) try: db = self.getDatabase() bulk = db.collection.initialize_ordered_bulk_op() for j in range(len(Dataset)): DataDict = {} DataDict.update( {'CreatedBy': empty, 'ModifiedBy': empty, 'Value': Score}) for column in columns: colValue = str(Dataset[column][j]) if (colValue == 'nan'): colValue = colValue.replace('nan', '') DataDict.update({column: colValue}) records.append(DataDict) print("list is ",records) Id = DataDict['Id'] Number = DataDict['Number'] print(DataDict) bulk.find( {'Id': Id, 'Number': Number}).upsert().update( { '$set': {'Id': Id, 'Number': Number,'Events':records} }) counter += 1 if counter % 1000 == 0: result = bulk.execute() logging.info(pprint(result)) bulk = db.coll.initialize_ordered_bulk_op() if counter % 1000 != 0: result = bulk.execute() logging.info(pprint(result)) except Exception as e: logging.exception(e) except BulkWriteError as bre: logging.error(pprint(bre.details)) rlwrap perl6)。

A Jupyter kernel也看到了一些初步提交。