Click here to Skip to main content
14,176,277 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I've searched the internet but find limited information on writing programs that build other unique programs. Any links
would be appreciated. I mean I want to build actual code with a program such as JavaScript writes other JavaScript. I have been able to do this with a limited success using php and JavaScript but I rarely get code that compiles and runs Thanks for your time.

What I have tried:

I've Google searched the internet.
Posted
Updated 16-Aug-18 13:44pm
v2
Comments
OriginalGriff 29-Jul-18 3:30am
   
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. And we have no idea what you are trying to achieve!

And if you really mean to do this in Javascript, think again ... you have no direct access to the client file system in JS.

Use the "Improve question" widget to edit your question and provide better information.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Programs that create other programs are usually called compilers. So you need to Google for the components required to convert source code to object code. Start with lex and yacc, which are used in the parsing of source statements, Apache Ant - Welcome[^] etc.
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Quote:
I've searched the internet but find limited information on writing programs that build other unique programs.

The name for those programs is 'compiler'.
Writing a compiler is not for beginners, it is advanced topic.
if you want to learn about compilers, I recommend the dragon book:
Dragon Book - Wikipedia[^]
Compilers: Principles, Techniques, and Tools - Wikipedia[^]
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

I think you will have better luck with "code generation" using C# or Java; versus "JavaScript".

Java Code Generation (Metaprogramming, Reflection, wtv) - Stack Overflow[^]

Using the CodeDOM | Microsoft Docs[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190525.1 | Last Updated 16 Aug 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100