Patent ID: 11947907
Assignee: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 5:
6. A non-transitory computer-readable recording medium storing therein an analysis program that causes a computer to execute a process comprising:
performing parsing on a first character string based on a grammar described in a parsing expression grammar (PEG) in which a variable is associated with a predetermined terminal symbol;
adding, to the variable, an element in which a predetermined attribute is imparted to a part of the first character string, the part being a second character string analyzed as corresponding to the terminal symbol in the parsing;
extracting an element that is latest from elements of each predetermined attribute from the variable; and
determining whether the element extracted by the extracting satisfies a predetermined condition regarding a context, preventing elements that are not latest among elements stored in the variable from being extracted.