|
|
This issue affects my povr branch because in branched off of the updated
parser. Expect this issue in release which include the parser updates
(ie not the v3.8 release or earlier).
See: https://github.com/POV-Ray/povray/issues/439
Two examples where the parser should catch the still being defined
function state and suggest a missing brace as the cause:
// povray +mv3.8 +iScalarFunction_missedBrace.ini
// Missing close brace causing seg fault with v4.0(master) parser updates?
#declare Fn = function {pattern {bozo
} // <--- Missing close brace }
#declare Vn = Fn(1,2,3);
#debug concat("\nVn = ",str(Vn,1,3),"\n\n")
#error "Parse Test. Stop early"
//---
or
// povray +mv3.8 +iVectorFunction_missedBrace.ini
// Missing close brace causing seg fault with v4.0(master) parser updates?
#declare Fn = function {pigment {bozo
color_map {[0,rgbft 0][1,rgbft 1] // <-- missing }
}}
#declare Vn = Fn(1,2,3);
#debug concat("\nVn = ",vstr(5,Vn,",",1,3),"\n\n")
#error "Parse Test. Stop early"
//---
Bill P.
Post a reply to this message
|
|