SDXorg / test-models

A collection of System Dynamics models implemented in various environments with a canonical output
MIT License
27 stars 22 forks source link

Test python keywords as variable names #31

Open JamesPHoughton opened 8 years ago

JamesPHoughton commented 8 years ago

In python, the following words are reserved:

    'and',
    'as',
    'assert',
    'break',
    'class',
    'continue',
    'def',
    'del',
    'elif',
    'else',
    'except',
    'exec',
    'finally',
    'for',
    'from',
    'global',
    'if',
    'import',
    'in',
    'is',
    'lambda',
    'not',
    'or',
    'pass',
    'print',
    'raise',
    'return',
    'try',
    'while',
    'with',
    'yield',

Need to be able to handle cases where these words are used as variable names. The same is probably true for other languages as well. Those can go in another test model.