Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support constants in input mapping #3

Open
ctmay4 opened this issue Mar 5, 2015 · 1 comment
Open

Support constants in input mapping #3

ctmay4 opened this issue Mar 5, 2015 · 1 comment
Assignees

Comments

@ctmay4
Copy link
Member

ctmay4 commented Mar 5, 2015

Input mapping currently looks like this:

"input_mapping": [
    {  "from": "ajcc7_t", "to": "t" }
]

This example temporarily puts the context value contained in "ajcc_t" into "t" before processing a table. This allows tables to be reused with different inputs. The need has arisen to use constant values instead of existing keys. This is not difficult, however a good syntax needs to be decided on. Static strings could be quoted. That would look like this:

"input_mapping": [
    {  "from": "\"constant\"", "to": "t" }
]
@ctmay4
Copy link
Member Author

ctmay4 commented Mar 16, 2015

To be clear, constants would be allowed for input_mapping.from and output_mapping.to.

@ctmay4 ctmay4 self-assigned this Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant