rw-moore / SciLO

GNU General Public License v3.0
0 stars 0 forks source link

Feat: add variable and fix response #49

Closed haotianzhu closed 5 years ago

haotianzhu commented 5 years ago

Check List

Comment

fix-single is a fixed single variable fix-list is a list of fixed single variables

the single variable contains: name, type, name of a variable is the pattern of variable which is unique.

the type of the variable contains name of type and some parameters

For example

    "variables": [
      {
        "name": "v1",
        "type": {
          "name": "fix-single",
          "value": "fixed string"
        }
      },
      {
        "name": "v2",
        "type": {
          "name": "fix-single",
          "value": "fixed string2"
        }
      },
      {
        "name": "v3",
        "type": {
          "values": [
            "1",
            "2",
            "3",
            4
          ],
          "name": "fix-list"
        }
      }
    ],

each type of variable has a generating function to generate a variable for question- attempt

50

Put 'closes #.' in your comment to auto-close the issue that your PR fixes (if such).