text stringlengths 0 234 |
|---|
Box_Raise : constant Latex_Length := |
(1.0 - Shrink) * 0.5 * To_Length (Graphic_Setup.Line_Heigth, Graphic_Setup); |
begin |
if Show_Intensity then |
Put_Line (Output.all, Put (X => Start, |
Y => Current_V_Pos, |
What => Style |
& "{" |
& ( |
"\shadedrule" |
& "[" & Image (Box_Raise) & "]" |
& "{" & Image (Len) & "}" |
& "{" & Image (H) & "}" |
) |
& "}")); |
Put_Line (Output.all, Put (X => Start, |
Y => Current_V_Pos, |
What => Style |
& "{" |
& ( |
Command |
& "[" & Image (Box_Raise) & "]" |
& "{" & Image (Len) & "}" |
& "{" & Image (H2) & "}" |
) |
& "}")); |
else |
Put_Line (Output.all, Put (X => Start, |
Y => Current_V_Pos, |
What => Style |
& "{" |
& ( |
Command |
& "[" & Image (Box_Raise) & "]" |
& "{" & Image (Len) & "}" |
& "{" & Image (H) & "}" |
) |
& "}")); |
end if; |
declare |
Dx : constant Picture_Length := Picture_Length (Len / Graphic_Setup.Unit_Length); |
Dy : constant Picture_Length := Picture_Length (H / Graphic_Setup.Unit_Length); |
B : constant Picture_Length := Picture_Length (Box_Raise / Graphic_Setup.Unit_Length); |
Y0 : constant Picture_Length := Current_V_Pos + B; |
begin |
Put_Line (Output.all, Put (X => Start, |
Y => Y0, |
What => HLine (Dx))); |
Put_Line (Output.all, Put (X => Start, |
Y => Y0, |
What => Vline (Dy))); |
Put_Line (Output.all, Put (X => Start, |
Y => Y0 + Dy, |
What => HLine (Dx))); |
Put_Line (Output.all, Put (X => Start + Dx, |
Y => Y0, |
What => VLine (Dy))); |
Function Definition: procedure Prova_Parser is |
Function Body: type Class is (Wp, Tsk, Deliv); |
package My_Parser is new Node_List_Parsers (Class); |
use My_Parser; |
Eol : constant Character := Character'Val (10); |
X : constant String := "" & Eol |
& "" & Eol |
& "" & Eol |
& " [ Wp ]" & Eol |
& "name : zorro" & Eol |
& "label : pluto " & Eol |
& "Viva la pappa col pomodoro" & Eol |
& "" & Eol |
& "" & Eol |
& "[task]" & Eol |
& "begin:12" & Eol; |
Names : My_Parser.Name_Maps.Map; |
begin |
Names.Insert (Key => +"task", |
New_Item => Tsk); |
declare |
Result : constant Node_List := Parse (Line_Arrays.Split (X), Names); |
begin |
Dump (Result); |
Function Definition: function Missing_Message (Missing : String_Lists.List) |
Function Body: return String |
is |
function Join (Item : String_Lists.List) return String is |
Result : Unbounded_String; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.