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

  • Home
  • SEARCH
  • 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 1098191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:32:34+00:00 2026-05-17T00:32:34+00:00

I wonder if it’s possible to write a new language above Javascript VM so

  • 0

I wonder if it’s possible to write a new language above Javascript VM so that you could embed your language – which is based on javascript – and it will work together with native javascript.

Example:

var person_exists = true; // native js

Animal eats banana // my language

console.log(person_exists) // native js

I’ve seen Cappuccino’s syntax and they say it could be run without compilation in the browser.

But then I have seen Coffeescript’s syntax, and that one has to be compiled first to javascript.

So is it possible to create a new language/javascript syntax on top of Javascript VM?

If yes, are there tutorials/books for how to do this?

  • 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-17T00:32:35+00:00Added an answer on May 17, 2026 at 12:32 am

    Processing.js is a script language interpreted by Javascript (interpreted, not compiled to JS as far as I know), you could take a look at that approach. Processing.js is specifically tailored to produce graphics onto a webpage, so it may not be exactly what you need, but it is an example of having two scripting languages on one website.

    (Processing is a separate graphics language which was first run in a Java environment (as well as other implementations), before the Canvas element was conceived and another implementation based on Javascript was made.)

    What it seems you want is ‘Javascript with my own features’. This is only possible if you (or someone else) build a JS+yourfeatures interpreter on top of Javascript. I don’t think that’s a very plausible thing to do though. Processing.js’s solution is probably a good middle ground, where you separate your own language from actual Javascript – that is, if your language and the regular JS can be separated.

    <script language="javascript">
      var person_exists = true; // native js
      interpret("animal"); // your language interpreter. Interpret function looks through the DOM for a script tag with the "myscript" language and the 'animal' ID.
      console.log(person_exists) // native js
    </script>
    <script language="myscript" id="animal">
       Animal eats banana // your language
    </script>
    

    Still, I’d reccommend thinking about what you ”really” want before skipping to the “I know, I’ll develop my own language!” part. What’s wrong with

    Animal = {
       eats: function(fruit) {
           console.log('om nom nom nom ' + fruit);
       }
    };
    
    var person_exists = true;
    Animal.eats(banana);
    console.log(person_exists);
    

    for example?

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

Sidebar

Ask A Question

Stats

  • Questions 533k
  • Answers 533k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I used WMI to implement something like this (like Richard… May 17, 2026 at 12:33 am
  • Editorial Team
    Editorial Team added an answer Update August 2020 As mentioned originally in this answer by… May 17, 2026 at 12:33 am
  • Editorial Team
    Editorial Team added an answer Check your application.xml file. Make sure the name space is… May 17, 2026 at 12:33 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

wonder if you could help me out with some Javascript. I have a string
i wonder which installation to use for my php? i will be using apache.
Wonder how I could do the following wit jquery - I have a url
I wonder if there are any good / possible ways to automate - for
I wonder if you can help. I want to write a script in python
I wonder if the above can operate the column like the excel. eg. same
Wonder what the difference between: static PROCESSWALK pProcess32First=(PROCESSWALK)GetProcAddress(hKernel,Process32First); ... pProcess32First(...); what is hKernel? Look
Wonder if anyone can help me understand how to sum up the column of
wonder why when I export my project to *.air and I install it on
Wonder if anyone can help me, the map displays fine but the marker does.

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.