SyntaxProcessor: use the new Dictionary class

Also create a builder.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>