Assignment 赋值语句
结构声明
- TS Declaration
- Java Class
- JSON Schema
interface Assignment {
"concept": "Assignment", // 产品概念
"label": string, // 赋值语句标题
"left": LogicItem, // 左边项
"right": LogicItem, // 右边项
}
class AssignmentTreeNode {
ConceptEnum concept; // 产品概念
String label; // 赋值语句标题
LogicItemTreeNode left; // 左边项
LogicItemTreeNode right; // 右边项
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/Assignment",
"definitions": {
"Assignment": {
"type": "object",
"properties": {
"concept": {
"type": "string",
"const": "Assignment"
},
"label": {
"type": "string"
},
"left": {
"$ref": "#/definitions/LogicItem"
},
"right": {
"$ref": "#/definitions/LogicItem"
}
},
"required": [
"concept",
"label",
"left",
"right"
],
"additionalProperties": false
}
}
}
示例
简单示例
- JSON
- YAML
{
"concept": "Assignment",
"label": "赋值",
"left": null,
"right": null
}
concept: Assignment
label: 赋值
left: null
right: null