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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:52:37+00:00 2026-05-28T04:52:37+00:00

I am kind new to writing custom languages. Before diving to Flex,Bison based Lexers,Parsers,Compilers

  • 0

I am kind new to writing custom languages. Before diving to Flex,Bison based Lexers,Parsers,Compilers I would like to ask if possible to do that before I begin to research maybe after week work I will realize that’s its impossible. My goal is to create simply scripting language which would be translated to C language not to compiled further until machine code because of this code goes to embedded platform and needs to be compiled differently than normal languages. My point is to make something like this: Written script -> Parser translates that code to C code based on rules -> compiles to embedded machine code.

So maybe someone could suggest me the way to do this. Currently I reading about Flex & Bison based custom languages which get compiled to machine code but I think this isn’t that I need.

  • 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-28T04:52:38+00:00Added an answer on May 28, 2026 at 4:52 am

    You might read some literature concerning domain specific languages, e.g. DSL2011 and earlier proceedings.

    Don’t focus that much on lexing and parsing. Most of the work and the issues are in defining the language semantics and implementation.

    Making a DSL translated to C is not an easy task. See for instance my DSL2011 paper on MELT.

    Read some good books on language semantics and pragmatics, e.g. Programming Language Pragmatics by Scott.

    Read also the Garbage Collection Handbook (Jones, Hosking, Moss).

    At last, read some edition of C.Queinnec Lisp in Small Pieces, which notably covers translating a dynamically typed language to C.

    Be aware that lexing and parsing is the most easy task in your work.

    Did you consider embedding some existing scripting language like e.g. lua, python or guile or using existing VMs like Parrot or nekovm

    Don’t forget to study several different domain specific or scripting or programming languages. You need to know much more than one!

    I strongly suggest making your implementation freely available in source form. It is quite difficult to attract users to a new DSL, and providing a free implementation lowers the barrier.

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

Sidebar

Related Questions

I'm writing a Magento extension that applies a new kind of discount to products
I'm new to reporting svcs and I'm writing a report based on a report
I'm rather new to PHP and I am kind of stuck here writing this
I'm kind of new to writing sql and I have a question about joins.
I'm writing software for a new hardware device which I want any kind of
Im kind of new in the whole papervision scene. For a school assignment I'm
I'm kind of new to XSLT, and I've gotten basic transformation done. Next I
So I'm kind of new to VB and am just playing around with a
I am kind of new to the Eclipse IDE. I have a hierarchy of
I'm kind of new to JQuery and was wondering how can I have the

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.