Merge: Examples class name
authorJean Privat <jean@pryen.org>
Thu, 5 May 2016 01:30:17 +0000 (21:30 -0400)
committerJean Privat <jean@pryen.org>
Thu, 5 May 2016 01:30:17 +0000 (21:30 -0400)
commit7c3c660897d814abf077b398161db39ef5dd11b2
treee0d1f2d8d5f97ebd448893b9d1672c7f5bbae0ac
parent40d7c1743ca78d510161608f0fe36b34a774baea
parenta171e24cdd52874d434e9ef16ab4493e0827f72a
Merge: Examples class name

@Morriar was interested in the `try_get_mclass_by_id` for its documentation services but wanted to pass a string (and not a AST node) and work on all module (not just one).

I suggested to use parse_something to transform the string into a qualified class name then filter the classes of the model on it. As an experimentation, I wrote a simple example program that does this.

@Morriar then suggested to put the sample program in the repository to document how can the various tools of the model can be used to do things.

This PR inaugurate the new directory `src/examples` that is intended to contains small snippets and programs that use the `nitc` package.

Pull-Request: #2050
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>