As mentioned in other comments, maybe worth to note that it's an assembler in a library form, i.e. without code for a parser. But then, looking at it in another way, it's a clever reuse of the C compiler's parser!
Now, in a something of a "shameless plug", incidentally I took a very similar approach[1] recently, going for a "library form" too when writing an experimental assembler for Dalvik (i.e. Android VM) bytecode. Not having to write a parser helped me to iterate/prototype/hack faster!
Now, in a something of a "shameless plug", incidentally I took a very similar approach[1] recently, going for a "library form" too when writing an experimental assembler for Dalvik (i.e. Android VM) bytecode. Not having to write a parser helped me to iterate/prototype/hack faster!
[1]: https://github.com/akavel/dali/blob/d79cec81293abc5f3a87f4d8...