Closed lawrancej closed 12 years ago
I'll take this one.
Nomose
A good way to proceed:
include/CompilerKit/convenience.h
:
GObject _compilerkit_string_concatenationnew(gunichar);src/convenience.c
For inspiration, look at compilerkit_alternation_vlist_new
in src/alternation.c
. You'll be doing something similar: you'll iterate through the string and construct symbols for each character and build a concatenation around it.compilerkit_string_concatenation_new
inside tests/convenience-test.c
Okay. Thanks professor
compilerkit_concatenation_new(compilerkit_symbol_new('a'), compilerkit_concatenation_new(compilerkit_symbol_new('b'), compilerkit_symbol_new('c'))
compilerkit_string_concatenation_new("abc");