Monday, 15 March 2010

objective c - Using ParseKit Tokenization and DelimitedString -


I'm trying to use with SQL Server syntax. If you take a look at the following example:

  created process [dbo] Start with [Exam] @ MyD UncheckedEntifiers - Get Something Finished   

I'm using the following for setup comments (and multilingual comments):

  PKTokenizer * t = [PKTokenizer TokenEasywithString: [inputString substringWithRange: range]]; // SQL does not support comments [Remove T.commentStateSellingLeingLeinStartMarker: @ "//"]; // but it supports - comments [T setconnection: T. From Comet: From '-': '-']; [T.commentState addSingleLineStartMarker: @ "-"]; [T setconiststatst: t COMMENTATION: '/' to: '/']; [T.commentState addMultiLineStartMarker: @ "/ *" & Marker: @ "* /"];   

which sets support for dealing with SQL annotations. Now I am trying to add support for the parameters such as @MyId . The present tonicizer raises these words, but does not include the @ in the string value. I was thinking to try using a delimitState :

  [t.delimitState addStartMarker: @ "@" endMarker: @ "" allowedCharacterSet: [NSCharacterSet alphanumericCharacterSet]];   

Then check for token.isDelimitedString , but it does not look any up.

Am I going about this wrong thing? Any suggestions on how I can join @ in my wordstate?

After

to match the developers

@MyId < / Code> As a single delimited string sign, try:.

  [T setTokenizerState: ': t.delimitState @' service my: '@']; [T.delimitState addStartMarker: @ "@" and marker: not allowed hacketreset: [NSCharacterSet AlphanumericCareectorSat]];    

No comments:

Post a Comment