AnsweredAssumed Answered

How to Define Language Keys in Lua Parsers

Question asked by RSA Admin Employee on Feb 15, 2013
Latest reply on Dec 19, 2013 by huan zhou

I just finished my first Lua parser ( The parser tackles NTLM over HTTP, i.e., extracts user and host information from proxy authorizations. I'm aware that this is not very useful to most of you, but since the availabe documentation on Lua-based parsers is still scarce I thought I share it anyway.


One thing I couldn't figure out is how to properly define language keys. The presentation "We’re Going to the Lua" uses the following notion:

local lkClient = nw:LanguageKey("client")



This didn't work for me and I had to use 


  {nwlanguagekey.create('client', nwtypes.Text, "Client Application")}



What's the difference between the two?