diff --git a/Makefile b/Makefile index 3cb38bf..7f448b1 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ MODULES=$(patsubst src/%.c, modules/%.so, $(sort $(wildcard src/*.c))) all: ${TARGET} ${MODULES} modules/%.so: src/%.c - ${CC} ${CFLAGS} -shared -fPIC -o $@ $< + ${CC} ${CFLAGS} -shared -o $@ $< libkuroko.so: ${OBJS} - ${CC} ${CLFAGS} -shared -fPIC -o $@ ${OBJS} + ${CC} ${CLFAGS} -shared -o $@ ${OBJS} builtins.c: builtins.krk echo "const char _builtins_src[] = " > builtins.c diff --git a/README.md b/README.md index 7d864be..8189740 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ If a default argument value is not provided, the expression assigned to it will Blocks, including function `def` blocks and control flow structures like `if` and `for`, must be indented with spaces to a level greater than the enclosing block. -You may indent blocks to whatever level you desire, so long as ordering remains consistent, though the recommendtation indentation size is 4 spaces. +You may indent blocks to whatever level you desire, so long as ordering remains consistent, though the recommendation indentation size is 4 spaces. Tabs are not valid as indentation and will be ignored. It is recommended that you use an editor which provides a clear visual distinction between tabs and spaces, such as [Bim](https://github.com/klange/bim). @@ -159,7 +159,7 @@ print(foo) Functions are first-class values and may be returned from functions and stored in variables, producing _closures_. -When a function references local values from an outter scope, such as in the example below, the referenced variables will be captured. +When a function references local values from an outer scope, such as in the example below, the referenced variables will be captured. ```py def foo(): @@ -239,7 +239,7 @@ Some other special method names include `__get__`, `__set__`, and `__str__`, whi _**Note**: Unlike in Python, most types are not actually instances of classes, though many of the same operations still apply to them._ -### Inheritence +### Inheritance Classes may inherit from a single super class: @@ -281,7 +281,7 @@ bar.printType() # Also, I enjoy long walks on the beach. ``` -You can determine at runtime if an object is an instance of a class, either directly or through its inheretince chain, with the `isinstance` builtin function: +You can determine at runtime if an object is an instance of a class, either directly or through its inheritance chain, with the `isinstance` builtin function: ```py class Foo: @@ -731,7 +731,7 @@ Pressing backspace when the cursor is preceded by whitespace will delete up to t The tab key will also produce spaces when the cursor is at the beginning of the line or preceded entirely with white space. -The repl will display indentation level indicators in preceeding whitespace as a helpful guide. +The repl will display indentation level indicators in preceding whitespace as a helpful guide. When a blank line or a line consisting entirely of whitespace is entered, the repl will process the full input. diff --git a/builtins.c b/builtins.c index 24b4721..f31b833 100644 --- a/builtins.c +++ b/builtins.c @@ -1,6 +1,6 @@ const char _builtins_src[] = "# Please avoid using double quotes or escape sequences\n" -"# in this file to allow it to be easily convereted to C.\n" +"# in this file to allow it to be easily converted to C.\n" "class list():\n" " 'Resizable array with direct constant-time indexing.'\n" " def extend(i):\n" diff --git a/builtins.krk b/builtins.krk index 4afd93b..ab8e366 100644 --- a/builtins.krk +++ b/builtins.krk @@ -1,5 +1,5 @@ # Please avoid using double quotes or escape sequences -# in this file to allow it to be easily convereted to C. +# in this file to allow it to be easily converted to C. class list(): 'Resizable array with direct constant-time indexing.' def extend(i):