## @file
# This file contained the parser for [Depex] sections in INF file
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
# distribution. The full text of the license may be found at
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
'''
InfDepexSectionParser
'''
##
# Import Modules
#
import re
## InfDepexParser
#
# For now, only separate Depex String and comments.
# Have two types of section header.
# 1. [Depex.Arch.ModuleType, ...]
# 2. [Depex.Arch|FFE, ...]
#
DepexContent = []
DepexComment = []
ValueList = []
#
# Parse section content
#
for Line in SectionString:
#
# Found comment
#
continue
#
# Replace with [Defines] section Macro
#
None, True)
if CommentCount > -1:
CommentCount = -1
#
# Current section archs
#
KeyList = []
LastItem = ''
NewCommentList = []
FormatCommentLn = -1
for CommentItem in DepexComment:
continue
else: