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 6088887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:02:14+00:00 2026-05-23T12:02:14+00:00

I need to build a translator (is cross-compiler the right word?) between Tradestation’s EasyLanguage

  • 0

I need to build a “translator” (is cross-compiler the right word?) between Tradestation’s EasyLanguage into C++. However, there isn’t any complete documentation on the grammar of EasyLanguage (which I could find).

As a more general question, given a set of valid programs in some Language ‘A’, is it possible to discern a grammar for ‘A’ if we know (or even if we don’t know) of the existence of certain basic tokens like ‘if’ ‘else’ and reserved words, or is this one of those unsolved case specific (hard?) questions.

Are there any useful tools I can use to start?

  • 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-05-23T12:02:15+00:00Added an answer on May 23, 2026 at 12:02 pm

    The simple answer is “No”.

    Any kind of generalization from examples suffers from the basic fact that it is guessing. You may guess that the langauge has an ‘if’ token. There’s no guarantee that it does, or that it is spelled if or that it has semantics that you understand.
    You’re not going to get an automated tool to induce the grammar for you.

    Your best bet is to take all the documents you can get that describe the langauge, and, well, guess at a grammar. Then you build a parser for the grammar, and validate it against as big a code base as you can find, and revise. I’ve done this dozens of times with a wide variety of langauges (see my bio).

    It is painful, but you often get someplace pretty useful. The good news is that your parser doesn’t have to parse anything the users don’t know how to write. The bad news is they’ll write things based on some obscure example you’ve never seen, or with a typo that accidentally works. (Even the language designer didn’t intend it, but that doesn’t matter to the user; his program works and your compiler doesn’t. Your problem by definition).

    What you’ll never know is if the the provider of the language has certain features he simply hasn’t documented, and hasn’t shown anyone else. Be continually prepared to be surprised, long after you are done :-{

    Now, the best tool you can use for this process IMHO is a GLR parser generator; it is what my company uses. These will parse any context-free langauge (that you might propose) without a lot of struggle to bend the grammar to match the other-common restrictions of recursive descent, LL(k), or LR(k) parsers. Life is hard enough to to guess the grammar, let alone guess the grammar and then guess how to bend to it make the parser generator swallow it correctly.

    You also have the problem of building a translator, once you get the grammar right. You might find this SO answer helpful: What kinds of patterns could I enforce on the code to make it easier to translate to another programming language?

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

Sidebar

Related Questions

I need to build a Swing GUI like this GUI Mockup http://img199.imageshack.us/img199/7271/mockupl.png where there
This I'm trying for transfer my current Apache/Modperl site to Starman, and need build
I need to build app with user messages (dialogs). I've solved this problem by
I need to build a feature like most of the banks use. Where.. if
I need to build a push system in django, basicly its function is to
I need to build a keystore with all the needed SSL certificates to make
I need to build some client side code which follows this use case: An
I need to build a multidimensional array from records retrieved from my database. Here
I need to build a configuration panel in the Plone control panel that store
I need to build a primary key consisting of 3 sections. The first section

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.