Your browser does not support JavaScript!

Home    Search  

Results - Details

Search command : Author="Μαρκάτος"  And Author="Ευάγγελος"  And Author="Π"

Current Record: 1 of 7

Back to Results Previous page
Next page
Add to Basket
[Add to Basket]
Identifier 000397181
Title Meta Javascript
Author Αποστολίδης, Ιωάννης Π.
Thesis advisor Σαβίδης, Αντώνιος
Reviewer Μαρκάτος, Ευάγγελος
Πρατικάκης, Πολύβιος
Abstract Generative metaprogramming is the ability to treat source code as first - class data and emit it to the program itself, thus modifying it. In multi - stage metaprogramming the above procedure can be repeated in infinite nesting level. Usually, the metaprogramm ing language is quite different from the normal language, overall resulting in two distinct languages with separate respective implementations. In our work, we focused on JavaScript and extended the language with a metaprogramming layer programmable direc tly in JavaScript. This way, we managed to deliver a full - scale metaprogramming framework where: (i) the normal language is a pure subset of the meta - language; and (ii) they share the same underlying implementation. Our JavaScript multi - staging support has been implemented by extending the open source Mozilla SpiderMonkey JavaScript engine. We indicate the minimal modifications required in SpiderMonkey by performing minor extensions in the syntax, parser and internal AST structures, and the addition of an u nparser, a staging loop, some library functions and a debugger backend component for AST inspection. Our approach handles each stage as an isolated entity by collecting all the meta - annotations for the specific depth, respecting the order, and creating a c oherent program. We validate our implementation through the implementation of an email application using meta - programming to fully generate the user - interface code. Additionally, we studied JavaScript source code patterns from the real world libraries and reengineered various parts to achieve improved reusability and performance through metaprogramming. Finally, we supported metaprogram debugging directly in the browser environment suing the available tools. For this purpose, we implemented a debugger client as a web page application that communicates with the extended SpiderMonkey debugger backend. The client provides extra features particular to metaprogramming debugging process, including visualizations of ASTs and respective unparsed source code fragments.
Language English
Subject Meta-programming
Μεταπρογραμματισμός
Issue date 2015-11-20
Collection   Faculty/Department--Faculty of Sciences and Engineering--Department of Computer Science--Post-graduate theses
  Type of Work--Post-graduate theses
Permanent Link https://elocus.lib.uoc.gr//dlib/f/e/6/metadata-dlib-1447845361-814535-7188.tkl Bookmark and Share
Views 239

Digital Documents
No preview available

View document
Views : 34