ParsedStatement(List<ScriptSegment> pSegmentList){
    mSegmentList = pSegmentList;
    
    //Check statement delimiter is only at the end of the list, if at all
    int i = 0;
    for(ScriptSegment lSegment : mSegmentList){
      if(lSegment instanceof StatementDelimiterSegment && i < pSegmentList.size()-1){
        throw new ExInternal("Delimiter segment must be the last segment in a ParsedStatement " + i + " " + pSegmentList.size());
      }
      i++;
    }
  }