thengascript icon indicating copy to clipboard operation
thengascript copied to clipboard

Reference Error in malayalam

Open ByteJoseph opened this issue 1 year ago • 2 comments

Hits I tried this in javascript

INPUT:

let k = "console.log('english')";
eval(k);

OUTPUT:

english

I tried this in Thengascript INPUT:

ആവട്ടെ ക = "കാണിക്കുക('മലയാളം')";
മൂല്യനിർണ്ണയം(ക);

OUTPUT:

Error:  ReferenceError: കാണിക്കുക is not defined 

Tested in nodejs

ByteJoseph avatar Apr 25 '24 09:04 ByteJoseph

Hey, that’s a good report. Well spotted! This can right now be solved by using മൂല്യനിർണ്ണയം(compile(ക)) where ക will be compiled to Thengascript and then evaluated.

A better way might be to put the compile step inside മൂല്യനിർണ്ണയം. Though, I think it might have some wrinkles if not thought through before pulling off. So let me give it a bit of time before I commit. Please consider using the compile inside for now.

And thanks a lot for the consistent bug reports 🙏❤️.

prathyvsh avatar Apr 25 '24 11:04 prathyvsh

any updates

ByteJoseph avatar Oct 10 '24 03:10 ByteJoseph