Sign inSubmit
ArticleMetrics
Research Article · Open access · Published 27 April 2013

Javascript Interpreter Using Non Recursive Abstract Syntax Tree Based Stack

Sambit Kumar Patra1, Binod Kumar Pattanayak2 & Bhagabat Puthal2

American Journal of Applied Sciences, Volume 10, Issue 4, pp. 403–413 · doi.org/10.3844/ajassp.2013.403.413

6,334 accesses5,792 downloads1 citations (Crossref)Metrics
Cite Check for updates

Abstract

In a Mobile device, apart from the battery and memory, the execution time is the key design constraint for executing the scripts of complex and unstructured JavaScript in the web-browser. Abstract Syntax Tree (AST) is a better option for mobile code as it is compiled only once. Due to very recursive nature of the AST, its traversal is going to be inherently recursive. Since use of recursion is out of scope, therefore the ultimate decision would be to emulate the recursive behavior using a set of stacks. We design an algorithm for a non recursive AST based stack, a lightweight interpreter which interprets and evaluates the complex scripts of JavaScript in the allocated time period.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 3.0 Licence (CC BY 3.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Patra, S. K., Pattanayak, B. K. & Puthal, B. (2013). Javascript Interpreter Using Non Recursive Abstract Syntax Tree Based Stack. American Journal of Applied Sciences, 10(4), 403–413. https://doi.org/10.3844/ajassp.2013.403.413

Licence
CC BY 3.0
Issue
Volume 10, Issue 4
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Javascript Interpreter Using Non Recursive Abstract Syntax Tree Based StackAmerican Journal of Applied Sciences · Volume 10, Issue 4 · pp. 403–413 · CC BY 3.0Download