答案 0 :(得分:2)
您想要使用“可选表达式”(请参阅this page约60%):
grammar Sokmesa
rule line
"system" wsp+ marker wsp+ (category wsp+)? attributelist
end
rule category
"AAA1" # Or whatever
end
# Add rules for 'marker', 'wsp', and 'attributelist' here
end