Concurrent parsing and processing of serial language code

US2016306786A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2016306786-A1
Application numberUS-201615192153-A
CountryUS
Kind codeA1
Filing dateJun 24, 2016
Priority dateMay 12, 2011
Publication dateOct 20, 2016
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The aspects enable a processor to concurrently execute markup language code (e.g., HTML) having embedded scripting language code (e.g., JAVASCRIPT®) during a page load operation by a browser. A markup language parser parses markup language code until embedded scripting language code is encountered. The segment of embedded scripting language code is extracted for execution by a scripting language engine which proceeds concurrently with speculative parsing of the markup language code. Markup language code generated by execution of scripting language code is evaluated to determine if it is well formed, and a partial rollback of the markup language parse and re-parsing of portions of the markup language code is accomplished if not. Concurrent parsing of markup language code and execution of scripting language code, with partial roll back of the parsing process when necessary, continues until all markup language code has been parsed and all scripting language code has been executed.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method by a processor, the method comprising: parsing a first serial language code, wherein the parsing of the first serial language code includes: encountering a second serial language code embedded in the first serial language code, the second serial language code being executable to generate additional first serial language code; and in response to encountering the second serial language code embedded in the first serial language code: generating the additional first serial language code by executing, in parallel with continued parsing of the first serial language code, the encountered second serial language code. 2 . The method of claim 1 , further comprising: in response to encountering the second serial language code embedded in the first serial language code: storing parsing state information indicating a portion of the first serial language code; determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed; and in response to determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed: re-initiating parsing of the first serial language code from the portion of the first serial language code indicated by the stored parsing state information. 3 . The method of claim 1 , further comprising: in response to encountering the second serial language code embedded in the first serial language code: storing parsing state information indicating a portion of the first serial language code; determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed; and in response to determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed: discarding parse data generated from the continued parsing of the first serial language code; and re-initiating parsing of the first serial language code from the portion of the first serial language code indicated by the stored parsing state information. 4 . The method of claim 1 , further comprising: determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed. 5 . The method of claim 4 , further comprising: in response to determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed: discarding parse data generated from the continued parsing of the first serial language code. 6 . The method of claim 1 , wherein the first serial language code comprises markup language code. 7 . The method of claim 6 , wherein the markup language code comprises hypertext markup language (HTML) code. 8 . The method of claim 6 , wherein the second serial language code comprises scripting language code. 9 . The method of claim 8 , wherein the scripting language code comprises JAVASCRIPT code. 10 . A computing device comprising a processor configured with processor-executable instructions to perform operations comprising: parsing a first serial language code, wherein the parsing of the first serial language code includes: encountering a second serial language code embedded in the first serial language code, the second serial language code being executable to generate additional first serial language code; and in response to encountering the second serial language code embedded in the first serial language code: generating the additional first serial language code by executing, in parallel with continued parsing of the first serial language code, the encountered second serial language code. 11 . The computing device of claim 10 , wherein the processor is configured with processor-executable instructions to perform operations further comprising: in response to encountering the second serial language code embedded in the first serial language code: storing parsing state information indicating a portion of the first serial language code; determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed; and in response to determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed: re-initiating parsing of the first serial language code from the portion of the first serial language code indicated by the stored parsing state information. 12 . The computing device of claim 10 , wherein the processor is configured with processor-executable instructions to perform operations further comprising: in response to encountering the second serial language code embedded in the first serial language code: storing parsing state information indicating a portion of the first serial language code; determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed; and in response to determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed: discarding parse data generated from the continued parsing of the first serial language code; and re-initiating parsing of the first serial language code from the portion of the first serial language code indicated by the stored parsing state information. 13 . The computing device of claim 10 , wherein the processor is configured with processor-executable instructions to perform operations further comprising: determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed. 14 . The computing device of claim 13 , wherein the processor is configured with processor-executable instructions to perform operations further comprising: in response to determining that the additional first serial language code, which was generated by executing the encountered second serial language code in parallel with the continued parsing of the first serial language code, is not well formed: discarding parse data generated from the continued parsing of the first serial language code. 15 . The computing device of claim 10 , wherein the first serial language code comprises markup language code. 16 . The computing device of claim 15 , wherein the markup language code comprises hypertext markup language (HTML) code. 17 . The computing device of cl

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2016306786A1 cover?
The aspects enable a processor to concurrently execute markup language code (e.g., HTML) having embedded scripting language code (e.g., JAVASCRIPT®) during a page load operation by a browser. A markup language parser parses markup language code until embedded scripting language code is encountered. The segment of embedded scripting language code is extracted for execution by a scripting languag…
Who is the assignee on this patent?
Qualcomm Inc
What technology area does this patent fall under?
Primary CPC classification G06F40/221. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Oct 20 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).