text stringlengths 0 234 |
|---|
--------------------- |
-- Skip_Dictionary -- |
--------------------- |
procedure Skip_Dictionary is |
Key : League.Strings.Universal_String; |
begin |
Expect (Character'Pos ('d')); |
while Buffer (Next) /= Character'Pos ('e') loop |
Parse_String (Key); |
Skip_Value; |
end loop; |
Expect (Character'Pos ('e')); |
end Skip_Dictionary; |
-------------- |
-- Skip_Int -- |
-------------- |
procedure Skip_Int is |
begin |
Expect (Character'Pos ('i')); |
if Buffer (Next) = Character'Pos ('-') then |
Expect (Buffer (Next)); |
end if; |
while Buffer (Next) in Digit loop |
Expect (Buffer (Next)); |
end loop; |
Expect (Character'Pos ('e')); |
end Skip_Int; |
--------------- |
-- Skip_List -- |
--------------- |
procedure Skip_List is |
begin |
Expect (Character'Pos ('l')); |
while Buffer (Next) /= Character'Pos ('e') loop |
Skip_Value; |
end loop; |
Expect (Character'Pos ('e')); |
end Skip_List; |
----------------- |
-- Skip_String -- |
----------------- |
procedure Skip_String is |
Len : Ada.Streams.Stream_Element_Count := 0; |
begin |
while Buffer (Next) in Digit loop |
Len := Len * 10 |
+ Ada.Streams.Stream_Element_Count (Buffer (Next)) |
- Character'Pos ('0'); |
Expect (Buffer (Next)); |
end loop; |
declare |
To : Ada.Streams.Stream_Element_Count := 0; |
begin |
Expect (Character'Pos (':')); |
while Last - Next + 1 <= Len loop |
To := To + Last - Next + 1; |
Len := Len - (Last - Next + 1); |
Read_Buffer; |
end loop; |
if Len > 0 then |
Next := Next + Len; |
end if; |
Function Definition: procedure AgenTests is |
Function Body: begin |
Testing.Start("Agen"); |
declare |
Param : Parameter; |
begin |
Is_Equal("Try_Parse(""name:string"")", Try_Parse("name:string", Param), True); |
Is_Equal("Parameter", Param, "name", "string"); |
Function Definition: procedure Help is |
Function Body: begin |
Put_Line(" (func|function) name:return_type [parameter:type]* - Print the generated function"); |
end Help; |
function Try_Act return Boolean is |
Func : Parameter; |
begin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.