diff --git a/doc/CompilerDesign.md b/doc/CompilerDesign.md index 630fd9c..6d2ea47 100644 --- a/doc/CompilerDesign.md +++ b/doc/CompilerDesign.md @@ -14,7 +14,7 @@ Problems: * some optimizations seem to be better suited by a new 'pass' - they don't seem to fit well into the existing model * some blurring of where python is injected. 'semantic analyzer' actually does some pseudo-codegen operations. * AST actually has some pseudo-codegen too - FunctionNode() generates a function header - * makes some optimizations more complex - one simple spitfire expression becomes a large chunk of python psuedo-code that is tricky to optimize + * makes some optimizations more complex - one simple spitfire expression becomes a large chunk of python pseudo-code that is tricky to optimize # 0.7.x # @@ -26,4 +26,4 @@ Goals: Specifics: * remove pseudo-codegen and replace it with a richer abstract syntax - * use more specific nodes to control code generation \ No newline at end of file + * use more specific nodes to control code generation diff --git a/doc/SpitfireInstallationInstructions.md b/doc/SpitfireInstallationInstructions.md index bb83563..987dac9 100644 --- a/doc/SpitfireInstallationInstructions.md +++ b/doc/SpitfireInstallationInstructions.md @@ -1,7 +1,7 @@ # Quick Installation Notes # Copy this code into an file called example.spt: -``` +```html Spitfire example @@ -23,7 +23,7 @@ Run the compiler on your example file. spitfire-compiler example.spt ``` This will produce a file called example.py. Now start up your python interpreter and try the following: -``` +```python import example data = example.example(search_list=[{'name':"Trurl"}]).main() print data diff --git a/doc/SpitfireSearchResultsExample.md b/doc/SpitfireSearchResultsExample.md index 9dcda2f..de16085 100644 --- a/doc/SpitfireSearchResultsExample.md +++ b/doc/SpitfireSearchResultsExample.md @@ -1,6 +1,6 @@ This is a basic search template that I use a few hundred times a day in my desktop search tool. -``` +```html #from spitfire.runtime.filters import escape_html #filter escape_html @@ -35,4 +35,4 @@ This is a basic search template that I use a few hundred times a day in my deskt #end for -``` \ No newline at end of file +``` diff --git a/doc/SpitfireVsCheetah.md b/doc/SpitfireVsCheetah.md index 6f73b65..ab3422b 100644 --- a/doc/SpitfireVsCheetah.md +++ b/doc/SpitfireVsCheetah.md @@ -67,7 +67,7 @@ There are a number of directives that have been omitted, at least for the time b * #assert * #breakpoint * #cache - * #compiler-setttings + * #compiler-settings * #include * #del * #echo @@ -99,4 +99,4 @@ These are handled a little differently internally to avoid issues like double-es ### Filters are implemented differently. ### -The API is very simple, so it's probably just easiest to look at the code. \ No newline at end of file +The API is very simple, so it's probably just easiest to look at the code.