Patent · US Expired

System and method for lexing and parsing program annotations

US6353925B1 · kind B1 · utility

57Cited by
13References
12Claims
0Family size

Assignee

Inventors

Key dates

Filing dateSep 22, 1999
Grant dateMar 5, 2002
Priority date
Expiry dateSep 22, 2019

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F8/427
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

When a source program containing annotations is processed by a user-selected tool, the annotations in the source program are detected by a lexer and passed to an annotation processor corresponding to the selected tool. The system contains a number of annotation processors and a number of program processing tools, and the annotation processor to which the annotations are passed is selected based upon the user-selected tool. The selected annotation processor converts annotations compatible with the user-selected tool into annotation tokens and returns the annotation tokens to the lexer. The lexer generates tokens based upon the programming-language statements in the source program, and passes both the tokens and annotation tokens to a parser. The parser, in turn, assembles the tokens and annotation tokens into an abstract syntax tree, which is then passed to the user-selected tool for further processing.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.