This question is a request for information that I want to use in a javascript,
but I don’t know where to look. I am asking for any information from more
experienced (or students of) programming languages.
I would like to know how to decipher the “if..then..else” logic of javascript.
I know how to use the language to do this, but I don’t understand the underlying
tokenization of the individual lines
Does anyone know of a source (book or website) that describes how to split strings into
logical segments that could be interpreted into actions.
For example, if I have the following pseudo command, how would I do the following?
if (some_condition_evaluated_to_true_or_false) { i=i+1 } else {i=i+10}
I would like to understand how this could be accomplished with ‘nested’ conditions as well.
I know this is not a direct javascript question, but I plan on using javascript
to split the strings into tokens or logic segments that would be executed by JS.
I have googled combinations of the following words, but don’t see much that helps me at this time: ‘program language logic commands tokens’
Any ideas are welcome, even if they don’t work.