


                                                           HOC(1)



NAME
     hoc - interactive floating point language

SYNOPSIS
     hoc [ file ... ]

DESCRIPTION
     _H_o_c interprets a simple language for floating point arith-
     metic, at about the level of BASIC, with C-like syntax and
     functions and procedures with arguments and recursion.

     The named _f_i_l_es are read and interpreted in order.  If no
     _f_i_l_e is given or if _f_i_l_e is `-' _h_o_c interprets the standard
     input.

     _H_o_c input consists of _e_x_p_r_e_s_s_i_o_n_s and _s_t_a_t_e_m_e_n_t_s.  Expres-
     sions are evaluated and their results printed.  Statements,
     typically assignments and function or procedure definitions,
     produce no output unless they explicitly call _p_r_i_n_t.

SEE ALSO
     _H_o_c - _A_n _I_n_t_e_r_a_c_t_i_v_e _L_a_n_g_u_a_g_e _f_o_r _F_l_o_a_t_i_n_g _P_o_i_n_t _A_r_i_t_h_m_e_t_i_c
     by Brian Kernighan and Rob Pike.
     _b_a_s(1), _b_c(1) and _d_c(1).

BUGS
     Error recovery is imperfect within function and procedure
     definitions.
     The treatment of newlines is not exactly user-friendly.


























                                                                1



