首页> 外国专利> Efficient computation of line information in a token-oriented representation of program code

Efficient computation of line information in a token-oriented representation of program code

机译:程序代码的面向令牌表示中的行信息的高效计算

摘要

An editor, software engineering tool or collection of such tools may be configured to encode (or employ an encoding of) an insertion point representation that identifies a particular token of a token-oriented representation and offset thereinto, together with at least some line-oriented coordinates. Efficient implementations of insert and remove operations that employ such a representation are described herein. Computational costs of such operations typically scale at worst with the size of fragments inserted into and/or removed from such a token-oriented representation, rather than with buffer size. Accordingly, such implementations are particularly well-suited to providing efficient support for programming tool environments in which a token stream is updated incrementally in correspondence with user edits.
机译:编辑器,软件工程工具或此类工具的集合可被配置为对插入点表示进行编码(或采用其编码),该插入点表示与至少一些面向行的标记一起识别面向令牌的表示的特定令牌并向其中偏移。坐标。本文描述了采用这种表示的插入和删除操作的有效实现。这种操作的计算成本通常在最坏的情况下随着插入到这种面向令牌的表示中和/或从这种面向令牌的表示中删除的片段的大小而不是缓冲区的大小而缩放。因此,这样的实施方式特别适合于为编程工具环境提供有效的支持,其中令牌流与用户编辑相对应地被增量地更新。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号