source: trunk/forge/source/wiki/forge-wiki-block_parsers-paragraphs.adb@ 19

Last change on this file since 19 was 19, checked in by vadim.godunko, 7 years ago

Initial implementation of Wiki parser.

  • Property svn:keywords set to Author Date Revision
File size: 3.9 KB
Line 
1------------------------------------------------------------------------------
2-- --
3-- Forge on Ada --
4-- --
5-- Runtime Library Component --
6-- --
7------------------------------------------------------------------------------
8-- --
9-- Copyright © 2014, Vadim Godunko <vgodunko@gmail.com> --
10-- All rights reserved. --
11-- --
12-- Redistribution and use in source and binary forms, with or without --
13-- modification, are permitted provided that the following conditions --
14-- are met: --
15-- --
16-- * Redistributions of source code must retain the above copyright --
17-- notice, this list of conditions and the following disclaimer. --
18-- --
19-- * Redistributions in binary form must reproduce the above copyright --
20-- notice, this list of conditions and the following disclaimer in the --
21-- documentation and/or other materials provided with the distribution. --
22-- --
23-- * Neither the name of the Vadim Godunko, IE nor the names of its --
24-- contributors may be used to endorse or promote products derived from --
25-- this software without specific prior written permission. --
26-- --
27-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
28-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
29-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
30-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
31-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
32-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
33-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
34-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
35-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
36-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
37-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
38-- --
39------------------------------------------------------------------------------
40-- $Revision: 19 $ $Date: 2014-05-31 17:15:26 +0000 (Sat, 31 May 2014) $
41------------------------------------------------------------------------------
42with Ada.Text_IO; use Ada.Text_IO;
43
44package body Forge.Wiki.Block_Parsers.Paragraphs is
45
46 ---------------
47 -- End_Block --
48 ---------------
49
50 overriding procedure End_Block
51 (Self : not null access Paragraph_Block_Parser) is
52 begin
53 Put_Line ("</p>");
54 end End_Block;
55
56 ----------
57 -- Line --
58 ----------
59
60 overriding procedure Line
61 (Self : not null access Paragraph_Block_Parser;
62 Text : League.Strings.Universal_String) is
63 begin
64 Put_Line (Text.To_UTF_8_String);
65 end Line;
66
67 -----------------
68 -- Start_Block --
69 -----------------
70
71 overriding procedure Start_Block
72 (Self : not null access Paragraph_Block_Parser) is
73 begin
74 Put_Line ("<p>");
75 end Start_Block;
76
77end Forge.Wiki.Block_Parsers.Paragraphs;
Note: See TracBrowser for help on using the repository browser.