renaming more
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
% @doc
|
||||
% type for an SFC AST
|
||||
% type for a GSC AST
|
||||
%
|
||||
% based on so_syntax.erl
|
||||
%
|
||||
|
||||
+6
-6
@@ -109,16 +109,16 @@ scan(SrcStr) ->
|
||||
SoTokens = to_so_tokens(SfLTokens),
|
||||
{ok, SoTokens};
|
||||
% fucking stupid
|
||||
{error, #gsc_err_bcom_unterminated{prev_tokens = SfcTokens}} ->
|
||||
{ok, to_so_tokens(SfcTokens)};
|
||||
{error, #gsc_err_bcom_unterminated{prev_tokens = GscTokens}} ->
|
||||
{ok, to_so_tokens(GscTokens)};
|
||||
Error ->
|
||||
Error
|
||||
end.
|
||||
|
||||
|
||||
|
||||
-spec to_so_tokens(SfcTokens) -> SoTokens
|
||||
when SfcTokens :: [tk()],
|
||||
-spec to_so_tokens(GscTokens) -> SoTokens
|
||||
when GscTokens :: [tk()],
|
||||
SoTokens :: [so_token()].
|
||||
|
||||
% @doc
|
||||
@@ -309,8 +309,8 @@ pass_types() ->
|
||||
|
||||
|
||||
|
||||
-spec to_so_token(SfcToken) -> MaybeSoToken
|
||||
when SfcToken :: tk(),
|
||||
-spec to_so_token(GscToken) -> MaybeSoToken
|
||||
when GscToken :: tk(),
|
||||
MaybeSoToken :: {true, SoToken}
|
||||
| false,
|
||||
SoToken :: so_token().
|
||||
|
||||
Reference in New Issue
Block a user