JSON: Difference between revisions

→‎Parsing: Keywords handled using single regex. Also, trailing context is used so that "falsehood" is not parsed as the keyword "false" followed by "hood", but rather is not recognized at all.
m (add lists)
(→‎Parsing: Keywords handled using single regex. Also, trailing context is used so that "falsehood" is not parsed as the keyword "false" followed by "hood", but rather is not recognized at all.)
Line 822:
@(define keyword (v))@\
@(local k)@\
@(wsall)@(somews)@{k /true/}@(or)@{k /|false|null/}@(ortrailer)@{k /null[^A-Za-z0-9_]/}@(end)@(ws)@\
@(bind v ("K" k))@\
@(end)
Anonymous user