trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
151 stars 49 forks source link

Fix string token definition in stdlib #777

Closed vsbogd closed 1 month ago

vsbogd commented 1 month ago

Make string a token which has double quote as a first and a last characters don't matter what is inside. Otherwise strings like "te\"st" are parsed as symbols because they cannot be recognized by regex "[^"]*".