Skip to content

Commit a787782

Browse files
committed
Fix README formatting error
1 parent 42fa21b commit a787782

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ This means that LuaJIT's C implementation perform the three operations:
8585
in one single pass.
8686
This approach is remarkable on itself and very efficient but it makes difficult to modify or extend the programming language.
8787

88-
Parsing Rule example
89-
~~~~~
88+
### Parsing Rule example ###
9089

9190
To illustrate how the parsing work in the language toolkit let us make an example.
9291
The grammar rule for the "return" statement is:
@@ -206,8 +205,7 @@ Otherwise the program `luajit-x` works exactly as luajit itself and accept the s
206205
207206
This means that you can experiment with the language by modifying the Lua implementation of the language and test the changes immediately without recompiling anything by using `luajit-x` as a REPL.
208207
209-
Generated Bytecode
210-
~~~~~~~~~~~~
208+
### Generated Bytecode ###
211209
212210
You can inspect the bytecode generated by the language toolkit by using the "-b" options.
213211
They can be invoked either with standard luajit by using "run.lua" or directly using the customized program `luajit-x`.
@@ -261,8 +259,7 @@ In the example above the generated bytecode will be *identical* to those generat
261259
This is not an hazard since the Language Toolkit's bytecode generator is designed to produce the same bytecode that LuaJIT itself would generate.
262260
Yet in some cases the generated code will differ but this is not considered a problem as long as the generated code is still correct.
263261
264-
Bytecode Annotated Dump
265-
~~~~~~~~~~~~~~
262+
### Bytecode Annotated Dump ###
266263
267264
In addition to the standard LuaJIT bytecode functions the language toolkit support also a special debug mode where the bytecode in printed byte-by-byte in hex format with some annotations on the right side of the screen.
268265
The annotations will explain the meaning of each chunk of bytes and decode them as appropriate.

0 commit comments

Comments
 (0)