s/sfc/gsc/g
'
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
% This is a header file that contains gsc's record types
|
||||
% This is a header file that contains sfc's record types
|
||||
%
|
||||
% This is in order to
|
||||
% 1. share records across modules; and,
|
||||
% 2. allow external modules to just use the gsc records
|
||||
% 2. allow external modules to just use the sfc records
|
||||
|
||||
-type tk_shape()
|
||||
:: bcom % /* ... */
|
||||
@@ -83,13 +83,13 @@
|
||||
% lists = (_, _, _)
|
||||
% | [_, _, _]
|
||||
% | {_, _, _}
|
||||
%-record(gsc_ast1_block,
|
||||
%-record(sfc_ast1_block,
|
||||
% {indent = none :: none | pos_integer(),
|
||||
% decls = none :: [gsc_ast1_decl()]}).
|
||||
% decls = none :: [sfc_ast1_decl()]}).
|
||||
%
|
||||
%-type gsc_ast() ::
|
||||
%-type sfc_ast() ::
|
||||
%
|
||||
%-type gsc_list_group() :: {'(', [tk()], ')'}
|
||||
%-type sfc_list_group() :: {'(', [tk()], ')'}
|
||||
% | {'[', [tk()], ']'}
|
||||
% | {'{', [tk()], '}'}
|
||||
% | {proof,
|
||||
@@ -102,47 +102,47 @@
|
||||
% record type: unterminated block comments at the end
|
||||
% of files. these are ok in legacy sophia, so we have to
|
||||
% specifically account for this error
|
||||
-record(gsc_err_bcom_unterminated,
|
||||
-record(sfc_err_bcom_unterminated,
|
||||
{prev_tokens :: [tk()],
|
||||
break_pos :: tk_pos(),
|
||||
rest :: string()}).
|
||||
|
||||
-record(gsc_err_no_tokmatch,
|
||||
-record(sfc_err_no_tokmatch,
|
||||
{prev_tokens :: [tk()],
|
||||
break_pos :: tk_pos(),
|
||||
rest :: string()}).
|
||||
|
||||
|
||||
-record(gsc_err_delims,
|
||||
-record(sfc_err_delims,
|
||||
{past :: [tk()],
|
||||
open_stack :: [tk()],
|
||||
bad_close :: tk(),
|
||||
future :: [tk()]}).
|
||||
% FIXME
|
||||
-record(gsc_err_nyi, {}).
|
||||
-record(gsc_err_empty_file, {}).
|
||||
-record(sfc_err_nyi, {}).
|
||||
-record(sfc_err_empty_file, {}).
|
||||
|
||||
%-record(src_parse_error,
|
||||
% {atom = none :: none | atom(),
|
||||
% string =
|
||||
|
||||
%j-record(gsc_err_gulp_ct,
|
||||
%j-record(sfc_err_gulp_ct,
|
||||
%j {gulped ::
|
||||
|
||||
% @doc
|
||||
% generic placeholder error for now
|
||||
-record(gsc_err,
|
||||
-record(sfc_err,
|
||||
{atom :: atom(),
|
||||
str = none :: none | iolist(),
|
||||
extra = none :: none | any()}).
|
||||
|
||||
% @doc all errors GSC can return conveniently listed in
|
||||
% @doc all errors SFC can return conveniently listed in
|
||||
% one place
|
||||
-type gsc_err() :: #gsc_err_bcom_unterminated{}
|
||||
| #gsc_err_no_tokmatch{}
|
||||
| #gsc_err_nyi{}
|
||||
| #gsc_err_empty_file{}
|
||||
| #gsc_err{}.
|
||||
-type sfc_err() :: #sfc_err_bcom_unterminated{}
|
||||
| #sfc_err_no_tokmatch{}
|
||||
| #sfc_err_nyi{}
|
||||
| #sfc_err_empty_file{}
|
||||
| #sfc_err{}.
|
||||
|
||||
|
||||
%----------------------------
|
||||
Reference in New Issue
Block a user