-module(radius_dict_parser). -export([parse/1, parse_and_scan/1, format_error/1]). -file("src/radius_dict_parser.yrl", 35). fix_comma({A,B,X},{_,_,Y}) -> {A,B,X++[$,|Y]}. make_adef(Name,Id,Type,Opts) -> {attribute,v(Name),v(Id),v(Type),lists:map(fun v/1,Opts),line(Name)}. make_vdef(Attr,Desc,Val) -> {value,v(Attr),v(Desc),v(Val),line(Attr)}. make_vendor(Name,Id) -> {vendor,v(Name),v(Id),{1,1},line(Name)}. make_vendor(Name,Id,Format) -> {vendor,v(Name),v(Id),v(Format),line(Name)}. make_vbegin(Name) -> {vendor_begin,v(Name),line(Name)}. make_vend(Name) -> {vendor_end,v(Name),line(Name)}. make_digit({A,B,X})-> {A,B,to_integer(X)}. to_integer("0x"++L) -> list_to_integer(L,16); to_integer(L) -> list_to_integer(L). v({_,_,V}) -> V. line({_,L,_}) -> L. -file("/usr/local/Cellar/erlang/17.3/lib/erlang/lib/parsetools-2.0.11/include/yeccpre.hrl", 0). %% %% %CopyrightBegin% %% %% Copyright Ericsson AB 1996-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. %% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. %% %% %CopyrightEnd% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % The parser generator will insert appropriate declarations before this line.% -type yecc_ret() :: {'error', _} | {'ok', _}. -spec parse(Tokens :: list()) -> yecc_ret(). parse(Tokens) -> yeccpars0(Tokens, {no_func, no_line}, 0, [], []). -spec parse_and_scan({function() | {atom(), atom()}, [_]} | {atom(), atom(), [_]}) -> yecc_ret(). parse_and_scan({F, A}) -> yeccpars0([], {{F, A}, no_line}, 0, [], []); parse_and_scan({M, F, A}) -> Arity = length(A), yeccpars0([], {{fun M:F/Arity, A}, no_line}, 0, [], []). -spec format_error(any()) -> [char() | list()]. format_error(Message) -> case io_lib:deep_char_list(Message) of true -> Message; _ -> io_lib:write(Message) end. %% To be used in grammar files to throw an error message to the parser %% toplevel. Doesn't have to be exported! -compile({nowarn_unused_function, return_error/2}). -spec return_error(integer(), any()) -> no_return(). return_error(Line, Message) -> throw({error, {Line, ?MODULE, Message}}). -define(CODE_VERSION, "1.4"). yeccpars0(Tokens, Tzr, State, States, Vstack) -> try yeccpars1(Tokens, Tzr, State, States, Vstack) catch error: Error -> Stacktrace = erlang:get_stacktrace(), try yecc_error_type(Error, Stacktrace) of Desc -> erlang:raise(error, {yecc_bug, ?CODE_VERSION, Desc}, Stacktrace) catch _:_ -> erlang:raise(error, Error, Stacktrace) end; %% Probably thrown from return_error/2: throw: {error, {_Line, ?MODULE, _M}} = Error -> Error end. yecc_error_type(function_clause, [{?MODULE,F,ArityOrArgs,_} | _]) -> case atom_to_list(F) of "yeccgoto_" ++ SymbolL -> {ok,[{atom,_,Symbol}],_} = erl_scan:string(SymbolL), State = case ArityOrArgs of [S,_,_,_,_,_,_] -> S; _ -> state_is_unknown end, {Symbol, State, missing_in_goto_table} end. yeccpars1([Token | Tokens], Tzr, State, States, Vstack) -> yeccpars2(State, element(1, Token), States, Vstack, Token, Tokens, Tzr); yeccpars1([], {{F, A},_Line}, State, States, Vstack) -> case apply(F, A) of {ok, Tokens, Endline} -> yeccpars1(Tokens, {{F, A}, Endline}, State, States, Vstack); {eof, Endline} -> yeccpars1([], {no_func, Endline}, State, States, Vstack); {error, Descriptor, _Endline} -> {error, Descriptor} end; yeccpars1([], {no_func, no_line}, State, States, Vstack) -> Line = 999999, yeccpars2(State, '$end', States, Vstack, yecc_end(Line), [], {no_func, Line}); yeccpars1([], {no_func, Endline}, State, States, Vstack) -> yeccpars2(State, '$end', States, Vstack, yecc_end(Endline), [], {no_func, Endline}). %% yeccpars1/7 is called from generated code. %% %% When using the {includefile, Includefile} option, make sure that %% yeccpars1/7 can be found by parsing the file without following %% include directives. yecc will otherwise assume that an old %% yeccpre.hrl is included (one which defines yeccpars1/5). yeccpars1(State1, State, States, Vstack, Token0, [Token | Tokens], Tzr) -> yeccpars2(State, element(1, Token), [State1 | States], [Token0 | Vstack], Token, Tokens, Tzr); yeccpars1(State1, State, States, Vstack, Token0, [], {{_F,_A}, _Line}=Tzr) -> yeccpars1([], Tzr, State, [State1 | States], [Token0 | Vstack]); yeccpars1(State1, State, States, Vstack, Token0, [], {no_func, no_line}) -> Line = yecctoken_end_location(Token0), yeccpars2(State, '$end', [State1 | States], [Token0 | Vstack], yecc_end(Line), [], {no_func, Line}); yeccpars1(State1, State, States, Vstack, Token0, [], {no_func, Line}) -> yeccpars2(State, '$end', [State1 | States], [Token0 | Vstack], yecc_end(Line), [], {no_func, Line}). %% For internal use only. yecc_end({Line,_Column}) -> {'$end', Line}; yecc_end(Line) -> {'$end', Line}. yecctoken_end_location(Token) -> try {text, Str} = erl_scan:token_info(Token, text), {line, Line} = erl_scan:token_info(Token, line), Parts = re:split(Str, "\n"), Dline = length(Parts) - 1, Yline = Line + Dline, case erl_scan:token_info(Token, column) of {column, Column} -> Col = byte_size(lists:last(Parts)), {Yline, Col + if Dline =:= 0 -> Column; true -> 1 end}; undefined -> Yline end catch _:_ -> yecctoken_location(Token) end. -compile({nowarn_unused_function, yeccerror/1}). yeccerror(Token) -> Text = yecctoken_to_string(Token), Location = yecctoken_location(Token), {error, {Location, ?MODULE, ["syntax error before: ", Text]}}. -compile({nowarn_unused_function, yecctoken_to_string/1}). yecctoken_to_string(Token) -> case catch erl_scan:token_info(Token, text) of {text, Txt} -> Txt; _ -> yecctoken2string(Token) end. yecctoken_location(Token) -> case catch erl_scan:token_info(Token, location) of {location, Loc} -> Loc; _ -> element(2, Token) end. -compile({nowarn_unused_function, yecctoken2string/1}). yecctoken2string({atom, _, A}) -> io_lib:write(A); yecctoken2string({integer,_,N}) -> io_lib:write(N); yecctoken2string({float,_,F}) -> io_lib:write(F); yecctoken2string({char,_,C}) -> io_lib:write_char(C); yecctoken2string({var,_,V}) -> io_lib:format("~s", [V]); yecctoken2string({string,_,S}) -> io_lib:write_string(S); yecctoken2string({reserved_symbol, _, A}) -> io_lib:write(A); yecctoken2string({_Cat, _, Val}) -> io_lib:format("~p",[Val]); yecctoken2string({dot, _}) -> "'.'"; yecctoken2string({'$end', _}) -> []; yecctoken2string({Other, _}) when is_atom(Other) -> io_lib:write(Other); yecctoken2string(Other) -> io_lib:write(Other). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -file("src/radius_dict_parser.erl", 219). yeccpars2(0=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_0(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(1=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_1(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(2=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_2(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(3=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_3(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(4=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_4(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(5=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_5(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(6=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_6(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(7=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_7(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(8=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_8(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(9=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_9(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(10=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_9(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(11=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_9(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(12=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_9(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(13=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_13(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(14=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_14(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(15=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_9(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(16=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_16(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(17=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_17(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(18=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_18(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(19=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_19(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(20=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_20(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(21=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_21(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(22=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_9(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(23=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_18(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(24=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_24(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(25=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_18(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(26=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_26(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(27=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_27(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(28=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_28(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(29=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_29(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(30=S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_30(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(31=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_31(S, Cat, Ss, Stack, T, Ts, Tzr); %% yeccpars2(32=S, Cat, Ss, Stack, T, Ts, Tzr) -> %% yeccpars2_32(S, Cat, Ss, Stack, T, Ts, Tzr); yeccpars2(Other, _, _, _, _, _, _) -> erlang:error({yecc_bug,"1.4",{missing_state_in_action_table, Other}}). yeccpars2_0(S, attribute, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 7, Ss, Stack, T, Ts, Tzr); yeccpars2_0(S, include, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 8, Ss, Stack, T, Ts, Tzr); yeccpars2_0(S, value, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 9, Ss, Stack, T, Ts, Tzr); yeccpars2_0(S, vendor, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 10, Ss, Stack, T, Ts, Tzr); yeccpars2_0(S, vendor_begin, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 11, Ss, Stack, T, Ts, Tzr); yeccpars2_0(S, vendor_end, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 12, Ss, Stack, T, Ts, Tzr); yeccpars2_0(_, _, _, _, T, _, _) -> yeccerror(T). yeccpars2_1(_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccgoto_def(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr). yeccpars2_2(_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccgoto_def(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr). yeccpars2_3(_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccgoto_def(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr). yeccpars2_4(_S, '$end', _Ss, Stack, _T, _Ts, _Tzr) -> {ok, hd(Stack)}; yeccpars2_4(_, _, _, _, T, _, _) -> yeccerror(T). yeccpars2_5(S, attribute, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 7, Ss, Stack, T, Ts, Tzr); yeccpars2_5(S, include, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 8, Ss, Stack, T, Ts, Tzr); yeccpars2_5(S, value, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 9, Ss, Stack, T, Ts, Tzr); yeccpars2_5(S, vendor, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 10, Ss, Stack, T, Ts, Tzr); yeccpars2_5(S, vendor_begin, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 11, Ss, Stack, T, Ts, Tzr); yeccpars2_5(S, vendor_end, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 12, Ss, Stack, T, Ts, Tzr); yeccpars2_5(_S, Cat, Ss, Stack, T, Ts, Tzr) -> NewStack = yeccpars2_5_(Stack), yeccgoto_dict(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr). yeccpars2_6(_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccgoto_def(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr). yeccpars2_7(S, name, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 25, Ss, Stack, T, Ts, Tzr); yeccpars2_7(_, _, _, _, T, _, _) -> yeccerror(T). yeccpars2_8(_S, Cat, Ss, Stack, T, Ts, Tzr) -> NewStack = yeccpars2_8_(Stack), yeccgoto_inc_def(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr). yeccpars2_9(S, name, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 14, Ss, Stack, T, Ts, Tzr); yeccpars2_9(_, _, _, _, T, _, _) -> yeccerror(T). %% yeccpars2_10: see yeccpars2_9 %% yeccpars2_11: see yeccpars2_9 %% yeccpars2_12: see yeccpars2_9 yeccpars2_13(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_|Nss] = Ss, NewStack = yeccpars2_13_(Stack), yeccgoto_ven_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_14(S, comma, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 15, Ss, Stack, T, Ts, Tzr); yeccpars2_14(_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccgoto_name_fix(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr). %% yeccpars2_15: see yeccpars2_9 yeccpars2_16(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_|Nss] = Ss, NewStack = yeccpars2_16_(Stack), yeccgoto_name_fix(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_17(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_|Nss] = Ss, NewStack = yeccpars2_17_(Stack), yeccgoto_ven_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_18(S, name, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 20, Ss, Stack, T, Ts, Tzr); yeccpars2_18(_, _, _, _, T, _, _) -> yeccerror(T). yeccpars2_19(S, format, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 21, Ss, Stack, T, Ts, Tzr); yeccpars2_19(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_|Nss] = Ss, NewStack = yeccpars2_19_(Stack), yeccgoto_ven_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_20(_S, Cat, Ss, Stack, T, Ts, Tzr) -> NewStack = yeccpars2_20_(Stack), yeccgoto_digits(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr). yeccpars2_21(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_,_|Nss] = Ss, NewStack = yeccpars2_21_(Stack), yeccgoto_ven_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). %% yeccpars2_22: see yeccpars2_9 %% yeccpars2_23: see yeccpars2_18 yeccpars2_24(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_,_|Nss] = Ss, NewStack = yeccpars2_24_(Stack), yeccgoto_val_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). %% yeccpars2_25: see yeccpars2_18 yeccpars2_26(S, atype, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 27, Ss, Stack, T, Ts, Tzr); yeccpars2_26(_, _, _, _, T, _, _) -> yeccerror(T). yeccpars2_27(S, aopt, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 29, Ss, Stack, T, Ts, Tzr); yeccpars2_27(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_,_|Nss] = Ss, NewStack = yeccpars2_27_(Stack), yeccgoto_att_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_28(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_,_,_|Nss] = Ss, NewStack = yeccpars2_28_(Stack), yeccgoto_att_def(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_29(S, comma, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 30, Ss, Stack, T, Ts, Tzr); yeccpars2_29(_S, Cat, Ss, Stack, T, Ts, Tzr) -> NewStack = yeccpars2_29_(Stack), yeccgoto_aopts(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr). yeccpars2_30(S, aopt, Ss, Stack, T, Ts, Tzr) -> yeccpars1(S, 29, Ss, Stack, T, Ts, Tzr); yeccpars2_30(_, _, _, _, T, _, _) -> yeccerror(T). yeccpars2_31(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_,_|Nss] = Ss, NewStack = yeccpars2_31_(Stack), yeccgoto_aopts(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccpars2_32(_S, Cat, Ss, Stack, T, Ts, Tzr) -> [_|Nss] = Ss, NewStack = yeccpars2_32_(Stack), yeccgoto_dict(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr). yeccgoto_aopts(27=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_28(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_aopts(30=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_31(_S, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_att_def(0=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_6(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_att_def(5=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_6(_S, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_def(0, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_5(5, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_def(5, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_5(5, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_dict(0, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_4(4, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_dict(5=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_32(_S, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_digits(18, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_19(19, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_digits(23=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_24(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_digits(25, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_26(26, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_inc_def(0=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_3(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_inc_def(5=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_3(_S, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_name_fix(9, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_9(22, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_name_fix(10, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_18(18, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_name_fix(11=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_17(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_name_fix(12=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_13(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_name_fix(15=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_16(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_name_fix(22, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_18(23, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_val_def(0=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_2(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_val_def(5=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_2(_S, Cat, Ss, Stack, T, Ts, Tzr). yeccgoto_ven_def(0=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_1(_S, Cat, Ss, Stack, T, Ts, Tzr); yeccgoto_ven_def(5=_S, Cat, Ss, Stack, T, Ts, Tzr) -> yeccpars2_1(_S, Cat, Ss, Stack, T, Ts, Tzr). -compile({inline,yeccpars2_5_/1}). -file("src/radius_dict_parser.yrl", 3). yeccpars2_5_(__Stack0) -> [__1 | __Stack] = __Stack0, [begin [ __1 ] end | __Stack]. -compile({inline,yeccpars2_8_/1}). -file("src/radius_dict_parser.yrl", 23). yeccpars2_8_(__Stack0) -> [__1 | __Stack] = __Stack0, [begin v ( __1 ) end | __Stack]. -compile({inline,yeccpars2_13_/1}). -file("src/radius_dict_parser.yrl", 21). yeccpars2_13_(__Stack0) -> [__2,__1 | __Stack] = __Stack0, [begin make_vend ( __2 ) end | __Stack]. -compile({inline,yeccpars2_16_/1}). -file("src/radius_dict_parser.yrl", 27). yeccpars2_16_(__Stack0) -> [__3,__2,__1 | __Stack] = __Stack0, [begin fix_comma ( __1 , __3 ) end | __Stack]. -compile({inline,yeccpars2_17_/1}). -file("src/radius_dict_parser.yrl", 20). yeccpars2_17_(__Stack0) -> [__2,__1 | __Stack] = __Stack0, [begin make_vbegin ( __2 ) end | __Stack]. -compile({inline,yeccpars2_19_/1}). -file("src/radius_dict_parser.yrl", 18). yeccpars2_19_(__Stack0) -> [__3,__2,__1 | __Stack] = __Stack0, [begin make_vendor ( __2 , __3 ) end | __Stack]. -compile({inline,yeccpars2_20_/1}). -file("src/radius_dict_parser.yrl", 29). yeccpars2_20_(__Stack0) -> [__1 | __Stack] = __Stack0, [begin make_digit ( __1 ) end | __Stack]. -compile({inline,yeccpars2_21_/1}). -file("src/radius_dict_parser.yrl", 19). yeccpars2_21_(__Stack0) -> [__4,__3,__2,__1 | __Stack] = __Stack0, [begin make_vendor ( __2 , __3 , __4 ) end | __Stack]. -compile({inline,yeccpars2_24_/1}). -file("src/radius_dict_parser.yrl", 16). yeccpars2_24_(__Stack0) -> [__4,__3,__2,__1 | __Stack] = __Stack0, [begin make_vdef ( __2 , __3 , __4 ) end | __Stack]. -compile({inline,yeccpars2_27_/1}). -file("src/radius_dict_parser.yrl", 10). yeccpars2_27_(__Stack0) -> [__4,__3,__2,__1 | __Stack] = __Stack0, [begin make_adef ( __2 , __3 , __4 , [ ] ) end | __Stack]. -compile({inline,yeccpars2_28_/1}). -file("src/radius_dict_parser.yrl", 11). yeccpars2_28_(__Stack0) -> [__5,__4,__3,__2,__1 | __Stack] = __Stack0, [begin make_adef ( __2 , __3 , __4 , __5 ) end | __Stack]. -compile({inline,yeccpars2_29_/1}). -file("src/radius_dict_parser.yrl", 13). yeccpars2_29_(__Stack0) -> [__1 | __Stack] = __Stack0, [begin [ __1 ] end | __Stack]. -compile({inline,yeccpars2_31_/1}). -file("src/radius_dict_parser.yrl", 14). yeccpars2_31_(__Stack0) -> [__3,__2,__1 | __Stack] = __Stack0, [begin [ __1 | __3 ] end | __Stack]. -compile({inline,yeccpars2_32_/1}). -file("src/radius_dict_parser.yrl", 2). yeccpars2_32_(__Stack0) -> [__2,__1 | __Stack] = __Stack0, [begin [ __1 | __2 ] end | __Stack]. -file("src/radius_dict_parser.yrl", 66).