1

我在某处听说 XML 是一种用于抽象语法的语言。现在这里我不明白的是,如何使用 XML 来指定抽象语法或结构或系统。

有人可以帮我解决这个概念吗?

谢谢

4

1 回答 1

1

How about this for the abstract syntax of an arithmetic expression:

<multiply>
  <number>2</number>
  <add>
    <number>3</number>
    <number>4</number>
  </add>
</multiply>

I don't know if that's what you had in mind, but if it isn't, perhaps it will help you to clarify your question.

于 2013-05-15T07:57:59.353 回答