core: lexer: differentiate string and literal

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
core: split lexer into its own lib

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>