I'm trying to write some code that replaces a couple of placeholder tokens in a token list, but am running up against a wall since I am still very new to latex3.
Currently, I get no result and no errors, so I suspect I should use something other than token lists for the placeholder tokens...
\documentclass{article}
\begin{document}
\ExplSyntaxOn
% placeholder tokens
\tl_new:N \VALUE
\tl_new:N \SYMBOL
\cs_set:Npn \test:nnnn #1#2#3#4
{
\tl_clear:N #4
\tl_set_eq:NN #4 #1
\tl_replace_all:Nnn #4 { \VALUE } { #2 }
\tl_replace_all:Nnn #4 { \SYMBOL } { #3 }
}
\tl_new:N \l_result_tl
\test:nnnn { \VALUE ~ \SYMBOL } { 300 } { EUR } \l_result_tl
result ~ should ~ be ~ "300 ~ EUR": ~ \tl_use:N \l_result_tl
\ExplSyntaxOff
\end{document}
\test:nnnn
, not\test
.