How to create an identifier matching the Excel cell naming rules?

Jan 22, 2014 at 7:58 PM
I would like to create an ExcelIdentifier that would match Excel-like cell references, that is,
  • (correct) A1
  • (correct) B12
  • (correct) A3B7
  • (incorrect) A0
  • (incorrect) B1A1
  • (incorrect) A7B2
Who would you proceed to do this with Irony? I have looked at the implementation of the usual C# or Python identifiers, but it does not really feel relevant.
Jan 22, 2014 at 8:04 PM
define identifier as 'usual' and then hook to identifier.ValidateToken event and write code that validates the identifier according to your rules
Jan 23, 2014 at 7:06 AM
Thanks a lot! It works.