Skip to content

Commit

Permalink
Added missing line
Browse files Browse the repository at this point in the history
  • Loading branch information
nhurman committed Apr 9, 2014
1 parent 3e18eeb commit de2670d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion YakaC/javacc/Yaka.jj
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ void analyse() throws YakaException : {}
{
<PROGRAMME> <ident> { m_context.eventManager().emit(Event.ProgramStart, token_source.identLu); }
(declFonction())*
<PRINCIPAL> { m_context.declaration().function(null); }
<PRINCIPAL>
{
m_context.declaration().function(null);
m_context.eventManager().emit(Event.FunctionDeclaration, "main");
}
bloc()
<FPRINCIPAL>
<FPROGRAMME> { m_context.eventManager().emit(Event.ProgramEnd); }
Expand Down

0 comments on commit de2670d

Please sign in to comment.