[Swift-user] problem in running regexp mapper

Wenjun Wu wwj at ci.uchicago.edu
Tue Dec 9 12:15:09 CST 2008


Hello,
  I'm running the tutorial example regexp.swift in vdsk-0.6.
  And it says, "Could not compile SwiftScript source: line 12:73: 
unexpected char: '1' ".
  Somehow the swift failed to parse the example.
  Here is the exception stack:
  2008-12-09 12:10:15,988-0600 INFO  Loader regexp.swift: source file is 
new. Recompiling.
2008-12-09 12:10:16,248-0600 ERROR VDLt2VDLx Could not compile 
SwiftScript source: line 12:73: unexpected char: '1'
2008-12-09 12:10:16,251-0600 DEBUG VDLt2VDLx Full parser exception
line 12:73: unexpected char: '1'
        at 
org.globus.swift.parser.SwiftScriptLexer.nextToken(SwiftScriptLexer.java:283)
        at antlr.TokenBuffer.fill(TokenBuffer.java:69)
        at antlr.TokenBuffer.LA(TokenBuffer.java:80)
        at antlr.LLkParser.LA(LLkParser.java:52)
        at 
org.globus.swift.parser.SwiftScriptParser.unaryExpr(SwiftScriptParser.java:2869)
        at 
org.globus.swift.parser.SwiftScriptParser.multiExpr(SwiftScriptParser.java:2808)
        at 
org.globus.swift.parser.SwiftScriptParser.additiveExpr(SwiftScriptParser.java:2754)
        at 
org.globus.swift.parser.SwiftScriptParser.condExpr(SwiftScriptParser.java:2691)
        at 
org.globus.swift.parser.SwiftScriptParser.equalExpr(SwiftScriptParser.java:2608)
        at 
org.globus.swift.parser.SwiftScriptParser.andExpr(SwiftScriptParser.java:2575)
        at 
org.globus.swift.parser.SwiftScriptParser.orExpr(SwiftScriptParser.java:2545)
        at 
org.globus.swift.parser.SwiftScriptParser.expression(SwiftScriptParser.java:1191)
        at 
org.globus.swift.parser.SwiftScriptParser.mappingExpr(SwiftScriptParser.java:1386)
        at 
org.globus.swift.parser.SwiftScriptParser.mapparam(SwiftScriptParser.java:1371)
        at 
org.globus.swift.parser.SwiftScriptParser.mapparamdecl(SwiftScriptParser.java:1339)
        at 
org.globus.swift.parser.SwiftScriptParser.mappingdecl(SwiftScriptParser.java:1316)
        at 
org.globus.swift.parser.SwiftScriptParser.datasetdecl(SwiftScriptParser.java:1130)
        at 
org.globus.swift.parser.SwiftScriptParser.declpart(SwiftScriptParser.java:1050)
        at 
org.globus.swift.parser.SwiftScriptParser.declaration(SwiftScriptParser.java:666)
        at 
org.globus.swift.parser.SwiftScriptParser.topLevelStatement(SwiftScriptParser.java:233)
        at 
org.globus.swift.parser.SwiftScriptParser.program(SwiftScriptParser.java:109)
        at org.griphyn.vdl.toolkit.VDLt2VDLx.compile(VDLt2VDLx.java:63)
        at org.griphyn.vdl.toolkit.VDLt2VDLx.compile(VDLt2VDLx.java:46)
        at org.griphyn.vdl.karajan.Loader.compile(Loader.java:207)
        at org.griphyn.vdl.karajan.Loader.main(Loader.java:123)

     Thanks,

Wenjun

messagefile inputfile <"q16.txt">;  
  
countfile c <regexp_mapper;  
             source=@inputfile,  
             match="(.*)txt",  
             transform="\1count"  
            >; 



More information about the Swift-user mailing list