I'm trying to create an Oracle pl/sql lexer/parser. I think I have th elexer portion down. Howeve, I trying to add in addition child states to handle the following:
begin
<code>
end;
-- -----------------------
for i in 1..10
loop
<code>
end loop;
-- -----------------------
while x
loop
<code>
end loop;
-- -----------------------
case x
<case code>
end case;
loop
<code>
end loop;
-- -----------------------
if x
<code>
end if;
where each of these code fragements is a beginning and ending "delimiter" for outlining use. <code> can contain any valid pl/sql code including any of the above code fragements. I thought I doing this correctly but when I add in the scopes as child states to the Default scope, the lexer breaks.
Can this be accomplished with the current language definer tool?