FULL FIDELITY PARSE TREE FOR PROGRAMMING LANGUAGE PROCESSING
    51.
    发明申请
    FULL FIDELITY PARSE TREE FOR PROGRAMMING LANGUAGE PROCESSING 审中-公开
    全方位的编程语言加工

    公开(公告)号:US20130152061A1

    公开(公告)日:2013-06-13

    申请号:US13316584

    申请日:2011-12-12

    IPC分类号: G06F9/45

    CPC分类号: G06F8/427 G06F8/34 G06F8/423

    摘要: An augmented parser can create an augmented parse tree that captures all the information in the source code as additional elements. Information included in the augmented parse tree can include whitespace, comments, pre-processor directives, line continuation characters, missing text, text errors, and original text. Thus, the augmented parse tree can be used to fully reconstruct the original source code, character for character, including spaces, comments, and incorrect code. The improved parser can store syntactic error information in the original source code in the parse tree. The augmented parse tree can be used to generate or modify source code. The parse tree created by the augmented parser can be used for incremental parsing to create a new augmented parse tree after a change.

    摘要翻译: 扩展解析器可以创建一个扩展解析树,将源代码中的所有信息作为附加元素进行捕获。 扩展解析树中包含的信息可以包括空格,注释,预处理器指令,行连续字符,缺少的文本,文本错误和原始文本。 因此,增强解析树可以用于完全重建原始源代码,字符字符,包括空格,注释和不正确的代码。 改进的解析器可以将语法错误信息存储在解析树中的原始源代码中。 扩展解析树可用于生成或修改源代码。 扩展解析器创建的解析树可用于增量解析,以便在更改后创建新的扩充解析树。

    Core object-oriented type system for semi-structured data
    52.
    发明授权
    Core object-oriented type system for semi-structured data 有权
    用于半结构化数据的核心面向对象类型系统

    公开(公告)号:US08112740B2

    公开(公告)日:2012-02-07

    申请号:US12139693

    申请日:2008-06-16

    IPC分类号: G06F9/44

    CPC分类号: G06F8/437

    摘要: A type system employing structural subtyping is disclosed herein. A core type system supports several structural types, such as stream, choice, intersection and sequence. Also part of the core type system is a new invariant type, which denotes values whose dynamic type is the same as its static type, and type restrictions for limiting a range of a base type. Furthermore, a streamlined structural version of delegates, called structural delegates and a validation method thereof are introduce into the type system. To further facilitate type safety, strict statically checked interface casts are introduced.

    摘要翻译: 本文公开了采用结构子类型的类型系统。 核心类型系统支持多种结构类型,如流,选择,交集和序列。 核心类型系统的一部分是新的不变类型,它表示动态类型与其静态类型相同的值,以及限制基本类型范围的类型限制。 此外,向类型系统介绍了一种简化的代表结构版本,称为结构代理及其验证方法。 为了进一步促进类型安全,引入了严格的静态检查界面。

    Core object-oriented type system for semi-structured data
    53.
    发明授权
    Core object-oriented type system for semi-structured data 有权
    用于半结构化数据的核心面向对象类型系统

    公开(公告)号:US08060859B2

    公开(公告)日:2011-11-15

    申请号:US12139712

    申请日:2008-06-16

    IPC分类号: G06F9/44 G06F9/45

    CPC分类号: G06F8/437

    摘要: A type system employing structural subtyping is disclosed herein. A core type system supports several structural types, such as stream, choice, intersection and sequence. Also part of the core type system is a new invariant type, which denotes values whose dynamic type is the same as its static type, and type restrictions for limiting a range of a base type. Furthermore, a streamlined structural version of delegates, called structural delegates and a validation method thereof are introduce into the type system. To further facilitate type safety, strict statically checked interface casts are introduced.

    摘要翻译: 本文公开了采用结构子类型的类型系统。 核心类型系统支持多种结构类型,如流,选择,交集和序列。 核心类型系统的一部分是新的不变类型,它表示动态类型与其静态类型相同的值,以及限制基本类型范围的类型限制。 此外,向类型系统介绍了一种简化的代表结构版本,称为结构代理及其验证方法。 为了进一步促进类型安全,引入了严格的静态检查界面。

    System and method for extending a compiler through a composer
    55.
    发明授权
    System and method for extending a compiler through a composer 有权
    通过作曲家扩展编译器的系统和方法

    公开(公告)号:US07441237B2

    公开(公告)日:2008-10-21

    申请号:US10396654

    申请日:2003-03-25

    IPC分类号: G06F9/44

    CPC分类号: G06F8/41

    摘要: A system and method for interfacing additional translation logic via composer(s) to a compiler to extend the capabilities of the compiler is provided. Generally, composer(s) can be software libraries that provide employment of componentization and polymorphism to compiler add-ons in order to extend compiler capabilities. One or more composers can be accessible to the compilation process by reference(s) made in a source code file. For example, additional translation logic for data types and/or expressions (e.g., markup language) created after compiler design can be made accessible to a compiler via composer(s), thus extending the existing compiler. The present invention mitigates problems associated with conventional compiler extending schemes and affords for compile code optimization without having to consider substantially all of the operations of a single query.

    摘要翻译: 提供了一种用于通过编辑器将附加翻译逻辑连接到编译器以扩展编译器的能力的系统和方法。 通常,作曲家可以是为编译器附加组件提供组件化和多态性的使用,以扩展编译器功能的软件库。 一个或多个作曲家可以通过源代码文件中的引用来访问编译过程。 例如,编译器设计后创建的数据类型和/或表达式(例如,标记语言)的附加翻译逻辑可以通过编辑器使编译器可访问,从而扩展现有的编译器。 本发明减轻了与常规编译器扩展方案相关的问题,并提供了编译代码优化,而不必基本上考虑单个查询的所有操作。