PaesslerAG / gval

Expression evaluation in golang
BSD 3-Clause "New" or "Revised" License
731 stars 82 forks source link

Fix handling hex numbers in expression #41

Closed gmelchett closed 3 years ago

gmelchett commented 4 years ago

Make code like this work:

    vars := map[string]interface{}{"addr": 0x1000}

    value, err := gval.Evaluate(`addr == 0x1000`, vars)

--

Signed-off-by: Jonas Aaberg cja@lithops.se

generikvault commented 4 years ago

Hi gmelchett,

thank you for contributing. I can accept the pull request if you fix the following issues:

kind regards

GeneriK