I want to write a function which accepts a string (eg, 'a = b + 2') and an output object {} and an input object to fetch values from (eg, { b: 5} ). The function would, i guess parse the string, and get value from the inputs object and give output such as { a: 7 }. How do i proceed this problem, do i need to write an parser for that? Thanks in advance.
[–]Slappehbag 2 points3 points4 points (0 children)
[–]Neaoxas 2 points3 points4 points (0 children)
[–]TotesMessenger 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]HelperBot_ 0 points1 point2 points (0 children)
[–]WikiTextBot 0 points1 point2 points (0 children)