This used to work in 0.18.0, now it crashes run-time. Could anyone please 
confirm if working for them as to exclude my installation? Thanks.
    
    
    import pegs
    
    proc main =
      var pg = peg"\<(\d / [a-fA-F])+\>"
      
      let fnd = findAll("abc<5F>22<B9>0<6<DB>", pg)
      
      for f in fnd:
        echo f
    
    main()
    
    
    Run

myself@DESKTOP MINGW64 /c/projects/nim  
$ nim --version  
Nim Compiler Version 0.19.0 [Windows: amd64]  
Compiled at 2018-09-26  
Copyright (c) 2006-2018 by Andreas Rumpf  
git hash: f6c5c636bb1a1f4e1301ae0ba5a8afecef439132  
active boot switches: -d:release  


myself@DESKTOP MINGW64 /c/projects/nim  
$ ./test_pegs.exe  
Traceback (most recent call last)  
test_pegs.nim(12) test_pegs  
test_pegs.nim(5) main  
pegs.nim(2040) peg  
pegs.nim(2033) parsePeg  
pegs.nim(2010) rawParse  
pegs.nim(1971) parseExpr  
pegs.nim(1963) seqExpr  
pegs.nim(1908) primary  
pegs.nim(1974) parseExpr  
pegs.nim(199) /  
pegs.nim(185) addChoice  
SIGSEGV: Illegal storage access. (Attempt to read from nil?)  

Reply via email to