简体   繁体   中英

.NET library for generating javascript?

Do you know of a .NET library for generating javascript code?

I want to generate javascript code based on information in my .NET application. I would like to be able to create an AST-like datastructure (using C#) and have it turned into valid javascript. I need to be able to create functions, statements, expressions etc., so I need something more than a JSON serializer - but I guess you could think of this as a ( very ) generalized JSON serializer.

Do such libraries exist and if so, could you recommend any?

Thank you.

There's a couple I'm aware of (though have not used):

  1. Script#
  2. JSC

I hope one is of use to you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM