<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Jaseem, string.replace() won't work.
Imagine this simple statement, where you're replacing the print()
function with something else.<br>
<br>
print("I print() hello");<br>
<br>
You need a proper parser (lexer / tokenizer).<br>
<br>
Kailash<br>
<br>
On 14/03/2013 7:47 PM, Jaseem Abid wrote:<br>
</div>
<blockquote
cite="mid:CAH-tXsD7vr=iAu-dc8zyZCP1CTGiVtKXaYaxYpxxKPA7nGt+WQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>On Thu, Mar 14, 2013 at 3:36 PM, <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:shamumol123@gmail.com"
target="_blank">shamumol123@gmail.com</a>></span>
wrote:<br>
</div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I
want to convert c keywords in to malayalam and create a
new compiler.If any body can help me please do help..<br>
</blockquote>
<div><br>
</div>
<div>I am having a thought here.
<div><br>
</div>
<div>Instead of writing a C compiler of your own, you can
probably write a simple parser which would replace your
malyalam keywords with the equivalent english ones, and
then fallback to a standard compiler like gcc
to compile the generated english C source. </div>
<div><br>
</div>
<div>This is probably something you can finish in 30 mins,
in any language with a string.replace method and unicode
support. </div>
<div><br>
</div>
<div>Am I missing something? Any thoughts? </div>
</div>
<div>
<br>
</div>
<div>Regards, <br>
</div>
</div>
<br>
Jaseem Abid<br>
<a moz-do-not-send="true"
href="https://github.com/jaseemabid/" target="_blank">github.com/jaseemabid</a><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Swathanthra Malayalam Computing discuss Mailing List
Project: <a class="moz-txt-link-freetext" href="https://savannah.nongnu.org/projects/smc">https://savannah.nongnu.org/projects/smc</a>
Web: <a class="moz-txt-link-freetext" href="http://smc.org.in">http://smc.org.in</a> | IRC : #smc-project @ freenode
<a class="moz-txt-link-abbreviated" href="mailto:discuss@lists.smc.org.in">discuss@lists.smc.org.in</a>
<a class="moz-txt-link-freetext" href="http://lists.smc.org.in/listinfo.cgi/discuss-smc.org.in">http://lists.smc.org.in/listinfo.cgi/discuss-smc.org.in</a>
</pre>
</blockquote>
<br>
</body>
</html>