#71 IDLToCLSCompiler and '\\' char literal

closed-fixed
nobody
None
5
2011-08-14
2006-09-28
Michael Sew
No

The IDLToCLSCompiler Parser can't handle:

const char backslash = '\\';

Which causes the following exception:

exception encountered: System.FormatException: Input
string was not in a correct format.
at System.Number.ParseInt32(String s, NumberStyles
style, NumberFormatInfo info)
at parser.IDLParser.ParseCharLiteral(String charLiteral)
at parser.IDLParser.character_literal()
at parser.IDLParser.literal()
at parser.IDLParser.primary_expr()
at parser.IDLParser.unary_expr()
at parser.IDLParser.mult_expr()
at parser.IDLParser.add_expr()
at parser.IDLParser.shift_expr()
at parser.IDLParser.and_expr()
at parser.IDLParser.xor_expr()
at parser.IDLParser.or_expr()
at parser.IDLParser.const_exp()
at parser.IDLParser.const_dcl()
at parser.IDLParser.export()
at parser.IDLParser.interface_body()
at parser.IDLParser.interface_dcl()
at parser.IDLParser.interfacex()
at parser.IDLParser.definition()
at parser.IDLParser.module()
at parser.IDLParser.definition()
at parser.IDLParser.module()
at parser.IDLParser.definition()
at parser.IDLParser.specification()
at
Ch.Elca.Iiop.IdlCompiler.IDLToCLS.processFile(MetaDataGenerator
generator, String file)
at Ch.Elca.Iiop.IdlCompiler.IDLToCLS.MapIdl()
at Ch.Elca.Iiop.IdlCompiler.IDLToCLS.Main(String[] args)

Discussion

    • status: open --> closed-fixed
     
  • fixed escape sequence handling in SVN rev. 2038