On 28 February 2011 14:58, zbordie <[email protected]> wrote:

> I'm trying to build a tool that detects/recognizes javascript code embedded
> in any
> kind of language or file format, for example PHP, ASP.NET, etc. . Not
> just HTML.
>
> What's your use case?  In particular, which of the following three files
(in C# syntax) would you want it to detect and why?

-- file1.cs --
Response.Write("alert('i pwnz u');");

-- file2.cs --
// In Javascript, we'd write this as function doit() { alert('hi'); }
void doit() { MessageBox.Show("hi"); }

-- file3.cs --
Response.Write("ale" + "rt (" + "'pw" + "ned" + "');");

Cheers,

- Peter

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to