• Gergo Mocsi's avatar
    GSOC work week 2, getting infromation from variables and print on terminal · 025e7ff3
    Gergo Mocsi yazdı
    This is an early version. I use the BASIC parser to parse the source,
    then the infromation is extracted from the symbol table built by parser.
    Error reporting is suppressed, beacuse it is not needed fro code completition.
    I placed my function inside SbModule, and created a struct called CodeCompletitionData, which holds the object's name, it's parent, and it's type name.
    This function, SbMethod::GetCodeCompleteDataFromParse() is called from Basic IDE's Notify function, which updates a cache(actually, reassigns a viariable :) ).
    Later, in the EditorWindow::KeyInput function there is a check wheteher dot key is pressed. After that, the actual variable (or word) is being looked up in the vector that holds code completition data. And finally, if it is found, it's methods are printed on the terminal.
    
    Change-Id: Idaf19baa8f720b8b117a76dc3cc2f90dd04fd155
    025e7ff3
sb.cxx 66.7 KB