From 4171584048cc10d36a2e3c75518aa4e1991b0734 Mon Sep 17 00:00:00 2001 From: Richard Carlsson Date: Fri, 10 Jul 2015 15:16:39 +0200 Subject: Make use of the Header feature in yecc --- lib/edoc/src/edoc_parser.yrl | 87 ++++++++++++++------------------------------ 1 file changed, 28 insertions(+), 59 deletions(-) (limited to 'lib/edoc') diff --git a/lib/edoc/src/edoc_parser.yrl b/lib/edoc/src/edoc_parser.yrl index 4773ab6ef6..30e09444b0 100644 --- a/lib/edoc/src/edoc_parser.yrl +++ b/lib/edoc/src/edoc_parser.yrl @@ -243,68 +243,37 @@ throws -> etype where_defs: #t_throws{type = '$1', defs = '$2'}. -%% (commented out for now) -%% Header -%% "%% ========================== -*-Erlang-*- =============================" -%% "%% EDoc function specification parser, generated from the file" -%% "%% \"edoc_parser.yrl\" by the Yecc parser generator." -%% "%%" -%% "%% Copyright (C) 2002-2005 Richard Carlsson" -%% "%%" -%% "%% Licensed under the Apache License, Version 2.0 (the "License"); you may" -%% "%% not use this file except in compliance with the License. You may obtain" -%% "%% a copy of the License at " -%% "%%" -%% "%% Unless required by applicable law or agreed to in writing, software" -%% "%% distributed under the License is distributed on an "AS IS" BASIS," -%% "%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." -%% "%% See the License for the specific language governing permissions and" -%% "%% limitations under the License." -%% "%%" -%% "%% Alternatively, you may use this file under the terms of the GNU Lesser" -%% "%% General Public License (the "LGPL") as published by the Free Software" -%% "%% Foundation; either version 2.1, or (at your option) any later version." -%% "%% If you wish to allow use of your version of this file only under the" -%% "%% terms of the LGPL, you should delete the provisions above and replace" -%% "%% them with the notice and other provisions required by the LGPL; see" -%% "%% . If you do not delete the provisions" -%% "%% above, a recipient may use your version of this file under the terms of" -%% "%% either the Apache License or the LGPL." -%% "%%" -%% "%% @private" -%% "%% @author Richard Carlsson " -%% "%% ====================================================================" -%% . +Header +"%% EDoc function specification parser, generated from the file" +"%% \"edoc_parser.yrl\" by the Yecc parser generator." +"%%" +"%% Licensed under the Apache License, Version 2.0 (the \"License\"); you may" +"%% not use this file except in compliance with the License. You may obtain" +"%% a copy of the License at " +"%%" +"%% Unless required by applicable law or agreed to in writing, software" +"%% distributed under the License is distributed on an \"AS IS\" BASIS," +"%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." +"%% See the License for the specific language governing permissions and" +"%% limitations under the License." +"%%" +"%% Alternatively, you may use this file under the terms of the GNU Lesser" +"%% General Public License (the \"LGPL\") as published by the Free Software" +"%% Foundation; either version 2.1, or (at your option) any later version." +"%% If you wish to allow use of your version of this file only under the" +"%% terms of the LGPL, you should delete the provisions above and replace" +"%% them with the notice and other provisions required by the LGPL; see" +"%% . If you do not delete the provisions" +"%% above, a recipient may use your version of this file under the terms of" +"%% either the Apache License or the LGPL." +"%%" +"%% @private" +"%% @copyright 2002-2005 Richard Carlsson" +"%% @author Richard Carlsson " +"". Erlang code. -%% ========================== -*-Erlang-*- ============================= -%% EDoc function specification parser, generated from the file -%% "edoc_parser.yrl" by the Yecc parser generator. -%% -%% Copyright (C) 2002-2005 Richard Carlsson -%% -%% Licensed under the Apache License, Version 2.0 (the "License"); you may -%% not use this file except in compliance with the License. You may obtain -%% a copy of the License at -%% -%% Unless required by applicable law or agreed to in writing, software -%% distributed under the License is distributed on an "AS IS" BASIS, -%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -%% See the License for the specific language governing permissions and -%% limitations under the License. -%% -%% Alternatively, you may use this file under the terms of the GNU Lesser -%% General Public License (the "LGPL") as published by the Free Software -%% Foundation; either version 2.1, or (at your option) any later version. -%% If you wish to allow use of your version of this file only under the -%% terms of the LGPL, you should delete the provisions above and replace -%% them with the notice and other provisions required by the LGPL; see -%% . If you do not delete the provisions -%% above, a recipient may use your version of this file under the terms of -%% either the Apache License or the LGPL. -%% ==================================================================== - -export([parse_spec/2, parse_typedef/2, parse_throws/2, parse_ref/2, parse_see/2, parse_param/2]). -- cgit v1.2.3