1 / 14

WPSM Programming Language

WPSM Programming Language. A simple language that transform simple data structure into complex x ML f ormat. W ai Y. Wong P eter Chen S eema Gupta M iqdad Mohammed. Background. Business to Business data transformation E x tensible M arkup L anguage Database schema mapping

dmitri
Download Presentation

WPSM Programming Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WPSM Programming Language A simple language that transform simple data structure into complex xML format Wai Y. Wong Peter Chen Seema Gupta Miqdad Mohammed

  2. Background • Business to Business data transformation • Extensible Markup Language • Database schema mapping • Extensible Stylesheet Language How does Content Manager handle this?

  3. Motivation • Worry free from XML syntax • Focusing on dealing with the inventory • A powerful tool to handle a mass data • An easy tool to learn How does WPSM fulfill these objectives?

  4. WPSM Goals • Ease of use • Productivity • Robust • Portable • Internet ability

  5. WPSM Syntax • WPSM takes in .xf source, .csv or other delimited, and outputs .xml • Source file read as stream of chars by Lexer and converted to stream of tokens • Stream of tokens read by Parser and converted to AST (Syntax checks) • Structure of AST in grammar (i.e root nodes and child nodes) • Token Types: Keyword, Variable, Integer, and String (i.e. BEGIN, END, PRINT(value), IF, WHILE, $1, “string”, 9, FS, RT, $var…) • Lexer and Parser errors

  6. WPSM Semantics • Back-End intermediate between Front-End and Library • TreeWalker performs semantic checks • Two walks of the AST • Symbol Table • Code Generation using Library and Helper • Semantic Errors (Run-Time and Compile Time)

  7. WPSM Compiler • “*.xf” (WPSM source program) • Whole WPSM Compiler is implemented in Java • Parser, Lexer, and Tree-walker are generated by ANTLR • Target language => Java source code

  8. WPSM Compiler

  9. WPSM Library • Simplify WPSM Code Generation • Simplify WPSM Syntax • Allows for Reusability of methods • Reduces output code • Makes Upgrades Easier • Breaks up Compiler and WPSM Features to allow for easier debugging

  10. WPSM System

  11. WPSM Testing • Source File Testing • Syntax Testing • Dependency Checking • Feature Testing • Release Control

  12. WPSM Example – Data  XML

  13. WPSM Example - .xf File

  14. Conclusion • Great team work • TAs’ and professor’s support • Struggles • Short time VS perfection • Questions, Comments, or Suggestions • Thanks…

More Related