jkennedy1980/Objective-C-CPD-Language — Issue #2: I have parse errors when I try parse objective-C code
Author: soniccat
Created: 2012-02-12 08:39:37+00:00
State: open

I print:
java -classpath “/Users/username/iPhoneProjects/projiOS/projiPad.v2/trunk/projiPad/CPD/ObjCLanguage-0.0.2-SNAPSHOT.jar:/Users/username/iPhoneProjects/projiOS/projiPad.v2/trunk/projiPad/CPD/pmd.jar” net.sourceforge.pmd.cpd.CPD –minimum-tokens 100 –files “/Users/username/iPhoneProjects/projiOS/projiPad.v2/trunk/projiPad” –language ObjectiveC –encoding UTF-8 –format net.sourceforge.pmd.cpd.XMLRenderer > “/Users/username/iPhoneProjects/projiOS/projiPad.v2/trunk/cpd-output.xml”

and have:
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 2431, column 40. Encountered: “x” (120), after : “\”\\”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 61, column 110. Encountered: “\n” (10), after : “\\”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 13, column 11. Encountered: “$” (36), after : “”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 495, column 11. Encountered: “$” (36), after : “”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 49, column 9. Encountered: “$” (36), after : “”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 70, column 25. Encountered: “$” (36), after : “”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)
com.deadmeta4.cpd.generated.TokenMgrError: Lexical error at line 29, column 17. Encountered: “$” (36), after : “”
at com.deadmeta4.cpd.generated.ObjCParserTokenManager.getNextToken(ObjCParserTokenManager.java:6164)
at com.deadmeta4.cpd.generated.ObjCParser.getNextToken(ObjCParser.java:7720)
at net.sourceforge.pmd.cpd.ObjectivecTokenizer.tokenize(ObjectivecTokenizer.java:31)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)