![]() ![]() Instead, they are (typically) expressed using Java string literals. Unlike, JavaScript, Perl and other scripting languages, Java doesn't have a special syntax for regexes. Javascript's not my area so I can't recommend any particular mechanism, I'm afraid - but I'd be very surprised if V8Juice, which you've already found, didn't let you do this. 48.9k 101 287 439 Add a comment 7 Answers Sorted by: 50 Change the leading and trailing '/' characters to ''', and then replace each '\' with '\\'. This means you don't need to translate anything. so shared libraries, which you can now load and run from your Javascript code. This would allow people to write plugins in C, compile them into. These will allow your Javascript code to call out to C code and vice versa. ![]() You may want to look at writing C bindings for Javascript instead. And that's not even considering eval(), which will let you construct arbitrary chunks of Javascript in strings and run them.Īny Javascript translator would have to be able to cope with such things, which means it would have to translate the Javascript into C at run-time - which makes it a JIT, which you're already using. Very, very tricky - Javascript is a heavily dynamic language where pretty much everything can be changed at run time: names of variables, functions, types, etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |