first of all, i wannee say that im new to this forum :D
i have a great idea for a language, so i was wondering how can i make an actual programming language??
death
0
Newbie Poster
Recommended Answers
Jump to PostYou mean, like how do you write a compiler?
Well, there are many good books and such on the topic; Google can be very helpful there. But generally the hardest part is to define the language in a rigourous way.
If you can write a BNF for your …
Jump to PostSo you searched and found Backus Naur Form. And maybe you saw some examples like (this is from Oberon):
number = integer | real.
integer = digit {digit} | digit {hexDigit} "H" .
real = digit {digit} "." {digit} [ScaleFactor].
ScaleFactor = ("E" | "D") ["+" | "-"] digit …
Jump to PostThere are various tools that can turn a BNF description of your language into state tables or code; you might check out YACC, but there are others (see Google). Another approach is to build your own parser; that generally gives you more control over error messages and the like. Plus, …
Jump to PostFor Onauc:
There are a few different ways to simply change the language of the keywords. One method is to take a running C compiler and tinker with the parser; where the bnf says 'WHILE' you could change that to something else.
Things like 'printf' are library routines, …
Jump to PostHi everyone,
Maybe your own database language like MySQL?
Actually i only just finished a project that does that. I basically used Java. I can't post the code here as its a code that now belongs to my company but i can tell you how to go about doing it.
…
All 19 Replies
Chainsaw
12
Posting Pro in Training
death
0
Newbie Poster
Chainsaw
12
Posting Pro in Training
onauc
0
Light Poster
death
0
Newbie Poster
Chainsaw
12
Posting Pro in Training
Chainsaw
12
Posting Pro in Training
onauc
0
Light Poster
TitusRevised
0
Newbie Poster
freesoft_2000
9
Practically a Master Poster
rakoon13
0
Light Poster
jwenting
1,889
duckman
Team Colleague
rakoon13
0
Light Poster
jwenting
1,889
duckman
Team Colleague
C.G.P.
-15
Light Poster
Rashakil Fol
commented:
this is trash
-2
nav33n
commented:
What are you on ? Some hybrid magic mushroom dipped in LSD ? eh ?
-2
MosaicFuneral
812
Nearly a Posting Virtuoso
C.G.P.
-15
Light Poster
Rashakil Fol
978
Super Senior Demiposter
Team Colleague
C.G.P.
-15
Light Poster
Nick Evan
commented:
[insult goes here]
-3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.