numerous typos in Readme.org

This commit is contained in:
2025-08-05 01:42:40 +03:00
parent 8dbdf4b381
commit 9b50d26c82

View File

@@ -39,7 +39,7 @@ Options:
sexc ./examples/hell-world.sex -o hello sexc ./examples/hell-world.sex -o hello
#+end_src #+end_src
That't it. Now you should have executable named ~hello~ in your That's it. Now you should have executable named ~hello~ in your
directory. Sex uses C under the hood, the default C compiler is ~cc~, directory. Sex uses C under the hood, the default C compiler is ~cc~,
but you can pass any using ~--c-compiler~ option, or by setting but you can pass any using ~--c-compiler~ option, or by setting
~SEX_CC~ environment variable. ~SEX_CC~ environment variable.
@@ -82,19 +82,19 @@ proper form: ~GL-ARRAY-BUFFER~.
** Modules ** Modules
Each source file is a module. Module can provide public interface and Each source file is a module. Module can provide public interface and
be imported by using ~(import path/to/module)~ expression. Module be imported by using ~(import path/to/module)~ expression. Module
search path consists of two parts: firs is relative to the source search path consists of two parts: first is relative to the source
being compiled location, and the second is ~SEX_MODULE_PATH~ being compiled location, and the second is ~SEX_MODULE_PATH~
environment variable. environment variable.
Module's public interface consists of everything declarred Module's public interface consists of everything declared
~pub~. Structures, function, templates, types, varialbes can be ~pub~. Structures, function, templates, types, variables can be
public. public.
** Syntactic templates ** Syntactic templates
Sex has support for template substitutions. Any piece of code can be Sex has support for template substitutions. Any piece of code can be
templated. Template declarations look like functions: they have a templated. Template declarations look like functions: they have a
name, an argument list and a body. When declared template is name, an argument list and a body. When declared template is
encountered during reading of Sex code, its body will udergo syntactic encountered during reading of Sex code, its body will undergo syntactic
rewriting using the provided values by the following rules: rewriting using the provided values by the following rules:
1. If the value is a symbol, all arguments in a body are replaced with 1. If the value is a symbol, all arguments in a body are replaced with
the value, and also all /parts/ of any other symbol equal to the the value, and also all /parts/ of any other symbol equal to the