Abstract: Highlights•Stack is suitable for handling the hierarchical structures.•Adding a stack into LSTM enables our model to capture the hierarchical information.•Our model can capture the long-term dependency in the programs.•Our model can represent programs precisely, outperforms baselines in three tasks.
Loading