Evaluates string expressions with positives integers, parentheses and +/- operators only.
Naive way to solve an expression, like a human would do with paper and pen.
Example:
| | Input | Output |
| package phoneletters | |
| import ( | |
| "bytes" | |
| "strconv" | |
| "strings" | |
| ) | |
| // Generator is a word generator for phone numbers | |
| type Generator struct { |
| <?php | |
| namespace Vendor\Module\Block\Adminhtml\Widget; | |
| class ImageChooser extends \Magento\Backend\Block\Template | |
| { | |
| /** | |
| * @var \Magento\Framework\Data\Form\Element\Factory | |
| */ | |
| protected $_elementFactory; |