Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:50:26+00:00 2026-06-12T19:50:26+00:00

As an experimental project, I would like to try implementing some DSL on top

  • 0

As an experimental project, I would like to try implementing some DSL on top of JavaScript.
Xtext seems like a great starting point as it has great out of the box Eclipse integration.
I was hoping to start on top of an existing Xtext JavaScript implementation, but could not find one.

It seems others were looking too with not luck. http://www.eclipse.org/forums/index.php/m/756376/

Is Xtext designed for this? What is the major difference between it and Antlr for my purpose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:50:27+00:00Added an answer on June 12, 2026 at 7:50 pm

    The question itself is a bit confusing.

    Do you want to implement a DSL using JS? (“DSL on top of JavaScript”)
    In this case you can find a starting point over here: http://www.mailsend-online.com/blog/a-dsl-in-javascript.html. Also, this article describes several use-cases via CoffeScript which actually compiles into JS.

    OR: Do you want to implement a DSL for describing JS files?
    It would be a huge work to define a grammar for JavaScript. Sure, you can do it with Xtext, but it’s still huge. Using Xtext, you define your grammar with EBNF notation and then using an MWE workflow, you generate all the necessary artifacts for a basic textual modeling environment: parser, lexer, compiler, the metamodel artifacts, the editor GUI, etc. In the background, Xtext uses ANTLR to parse input files, e.g. the ones edited on the GUI. So if you want to “reuse” an existing grammar, you should check out the grammar list for ANTLR: http://www.antlr.org/grammar/list. (The ECMAScript is what you might be looking for.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to do some experimental work in a hg project. So I
I've made some experimental code that I would like to save in the repository,
I am working on a personal project with F# and would like to experiment
I'm new to java programming and I would like to work on some kind
I am analyzing some experimental data in the form of .tiff multi frames. Withins
I'm on an app engine project where I'd like to put in a link
I have a large collection of my personal scripts that I would like to
i've been running some experiments of my own with Spring Roo and it seems
I'm getting familiar with RX and as my experimental project I'm trying to create
I have a very small Java codebase that I would like to expose as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.