How to create my own properties?

How can I create my own property so that I can write <$somevalue> and have the compiler replace it with a real value?