Skip to main content
  • Log in
  • Manage Cookies
EclipseCon - Eclipse Foundation
  • Conference
    • Program Schedule
    • Program List
    • Registration
  • Features
    • Community Day
    • Hacker Day
    • Dinner Meetups
    • OSGi Summit
    • Keynotes
  • Community
    • Code of Conduct
    • Health & Safety at EclipseCon
    • Community Resources
    • 2022 Speakers
    • Information for Speakers
  • Sponsors
    • Be a Sponsor
    • Information for Exhibitors
    • Our Sponsors
    • Sponsor Testimonials
  • Venue
    • Conference Venue
    • Hotels
    • Ludwigsburg
  • About Us
    • EclipseCon 2022
    • Program Committee
    • The Eclipse Foundation
    • Past Conferences
    • Other Events
  1. Home
  2. EclipseCon
  3. EclipseCon 2022
  4. Sessions
  5. Code generation for DSLs on Node.js

Code generation for DSLs on Node.js

Session details
Status: 
Declined
Speaker(s): 
Christian Schneider (TypeFox GmbH)
Experience level: 
Beginner
Tags: 
DSL
langium
code generation
typescript
nodejs
Session Track: 
Web & Desktop Tools & IDEs
Session Type: 
Standard

Writing code that writes code has proven to be valuable for keeping software scalable and maintainable. Moreover, code generation techniques significantly increase the profitability of software in many areas. Template engines have been available for decades for classical programming languages as well as web-based environments. DSL development tools like Eclipse Xtext do a great job on assisting us in developing solutions on the Java platform, for example.

The journey goes on, and it leads to the cloud. The new open source project Langium enables DSL development for cloud IDEs, and the ability for generating target code is a key feature. Writing code generators in JavaScript or TypeScript is possible, and tagged templates are a valuable feature. However, problems remain, like the dilemma of properly formatted templates vs. properly formatted generated code.

In this talk I will showcase the development of a code generator in TypeScript being executed on Node.js. My presentation includes solutions for:

  • the whitespace problem
  • unfolding definitions into different generated artifacts
  • mastering complexity by introducing intermediate representations
  • testing the generator

 

Objective of the presentation: 
Learn how to effectively implement code generators in TypeScript and run them on Node.js;
Attendee pre-requisites - If none, enter "N/A": 
Basic knowledge on web tools of the trade, like TypeScript, Jest, and VS Code
  • Sign in to post comments.

Elite

  • Huawei
  • IBM

Premium

  • Yatta Solutions GmbH
  • Red Hat
  • Eurotech

Basic

  • EclipseSource
  • SCANOSS
  • SSI Schaefer IT Solutions GmbH
  • TypeFox GmbH
  • Mercedes-Benz Tech Innovation
  • Obeo
  • Bosch IO GmbH
  • ARCAD Software

Media

  • GermanTechJobs

Become a Sponsor

Eclipse Foundation

  • About Us
  • Contact Us
  • Sponsor
  • Members
  • Governance
  • Code of Conduct
  • Logo and Artwork
  • Board of Directors
  • Careers

Legal

  • Privacy Policy
  • Terms of Use
  • Copyright Agent
  • Eclipse Public License
  • Legal Resources

Useful Links

  • Report a Bug
  • Documentation
  • How to Contribute
  • Mailing Lists
  • Forums
  • Marketplace
EclipseCon is brought to you by The Eclipse Foundation with the support of our sponsors.
Powered by Drupal and built on COD.

Copyright © Eclipse Foundation. All Rights Reserved.

Back to the top