Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Ruby Syntax Validation Failure

Daniel Spiewak wrote:
> build.config :server_file =>
> "#{build_type['path']}/#{build_config['archive']}", :server_path =>
> config['server_path'], :build_dir_prefix =>
> build_config['build_dir_prefix']
>
> However, DLTK's syntax parser marks it as invalid with the same error as
> Ruby 1.8.4 or earlier.  The code executes properly in Ruby.  I should
> probably check to see if it runs properly in JRuby 0.9...
>
Yes;
 I tried pasting the code into jirb (0.9.8) and it gave me a syntax error:
SyntaxError: (irb):0: syntax error, expecting   end-of-file     '\n'   
','     ';'     '='     '?'     '['     kCLASS   kMODULE kDEF    kBEGIN 
kRESCUE kENSURE kEND    kIF     kUNLESS kELSIF  kELSE   kCASE   kWHEN  
kWHILE  kUNTIL   kFOR    kBREAK  kNEXT   kREDO   kRETRY  kDO     kRETURN
kYIELD  kSUPER  kSELF   kNIL    kTRUE   kFALSE  kAND     kOR     kIF_MOD
kUNLESS_MOD     kWHILE_MOD      kUNTIL_MOD      kRESCUE_MOD    
kDEFINED        k__LINE__k__FILE__       tIDENTIFIER     tFID    tGVAR  
tIVAR   tCONSTANT       tCVAR   tNTH_REF        tBACK_REF       tINTEGER
tFLOAT  tUPLUS  tUMINUS tUMINUS_NUM     tPOW    tCMP    tEQ     tEQQ   
tNEQ    tGEQ    tLEQ    tANDOP  tOROP    tMATCH  tNMATCH tDOT    tDOT2  
tDOT3   tLSHFT  tRSHFT  tCOLON2 tCOLON3 tOP_ASGN        tLPAREN
tLPAREN2tRPAREN  tLPAREN_ARG     tLBRACK tLBRACE tSTAR   tSTAR2  tAMPER 
tAMPER2 tTILDE  tPERCENT        tDIVIDE tPLUS   tMINUS   tLT     tGT    
tPIPE   tBANG   tCARET  tLCURLY tRCURLY tSYMBEG tSTRING_BEG    
tXSTRING_BEG    tREGEXP_BEG      tWORDS_BEG      tQWORDS_BEG but found
':' instead

I don't know which JRuby DLTK uses, but you might want to file a bug
with JRuby or send this to the JRuby User list;


murphee


Back to the top