Ejemplo n.º 1
0
/** @todo Describe what task main will accomplish. */
int main (int argc, char ** argv)
{
    CompilerKitNonterminal* nonterminal;
    g_type_init();
    
    nonterminal = compilerkit_nonterminal_new();
    
    /** @todo Briefly show how to use the methods in CompilerKitNonterminal to accomplish the task. */

    g_object_unref (nonterminal);
}
Ejemplo n.º 2
0
/** @todo Describe what task main will accomplish. */
int main (int argc, char ** argv)
{
    CompilerKitGrammar* grammar;
    CompilerKitNonterminal *start;

    g_type_init();

    start = compilerkit_nonterminal_new("S");
    grammar = compilerkit_grammar_new(start, NULL);

    g_object_unref (grammar);
}