Skip to content

Commit

Permalink
Fix neotoma:file spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuncer Ayaz committed Jan 18, 2013
1 parent aa9559a commit bbb5758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neotoma.erl
Expand Up @@ -14,12 +14,12 @@ main([Filename | Args]) ->


%% @doc Generates a parser from the specified file. %% @doc Generates a parser from the specified file.
%% @equiv file(Filename, []) %% @equiv file(Filename, [])
-spec file(file:filename()) -> ok. -spec file(file:filename()) -> ok | {error, atom()}.
file(InputGrammar) -> file(InputGrammar) ->
file(InputGrammar, []). file(InputGrammar, []).


%% @doc Generates a parser from the specified file with the given options. %% @doc Generates a parser from the specified file with the given options.
-spec file(file:filename(), [option()]) -> ok. -spec file(file:filename(), [option()]) -> ok | {error, atom()}.
file(InputGrammar, Options) -> file(InputGrammar, Options) ->
Basename = filename:basename(InputGrammar, ".peg"), Basename = filename:basename(InputGrammar, ".peg"),
InputDir = filename:dirname(InputGrammar), InputDir = filename:dirname(InputGrammar),
Expand Down

0 comments on commit bbb5758

Please sign in to comment.