...
首页> 外文期刊>American journal of applied sciences >JAVASCRIPT INTERPRETER USING NON RECURSIVE ABSTRACT SYNTAX TREE BASED STACK
【24h】

JAVASCRIPT INTERPRETER USING NON RECURSIVE ABSTRACT SYNTAX TREE BASED STACK

机译:使用基于非递归抽象语法树的堆栈的JAVASCRIPT解释器

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

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.
机译:在移动设备中,除了电池和内存外,执行时间是在Web浏览器中执行复杂和非结构化JavaScript脚本的关键设计约束。抽象语法树(AST)对于移动代码来说是一个更好的选择,因为它只能编译一次。由于AST具有非常递归的性质,因此它的遍历将是固有的递归。由于使用递归超出了范围,因此最终决定将是使用一组堆栈来模拟递归行为。我们为基于非递归AST的堆栈设计了一种算法,这是一种轻量级的解释器,可以在分配的时间段内解释和评估JavaScript的复杂脚本。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号