From: lkcl Date: Tue, 22 Jun 2021 15:43:59 +0000 (+0100) Subject: (no commit message) X-Git-Tag: DRAFT_SVP64_0_1~736 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f0ab87cffdd857da1eb66a20539c57a2f6fb0d5;p=libreriscv.git --- diff --git a/openpower/isa.mdwn b/openpower/isa.mdwn index 1d2fe5591..e95f72072 100644 --- a/openpower/isa.mdwn +++ b/openpower/isa.mdwn @@ -32,7 +32,7 @@ FP instructions: useful for testing # Pseudocode syntax -The syntax is shown in the v3.0B OpenPOWER Reference Manual. The implementation of a parser, using python-ply, is here: +The syntax is shown in the v3.0B OpenPOWER Reference Manual. The implementation of a parser, using python-ply, is here: The parser is based on the python-ply GardenSnake.py example (except bugs were fixed in it, first). Extra tokens, in the lexer phase, are inserted dynamically into the stream to make the parser think that it is seeing python-like syntax where in fact it is not. Example: when a pseudocode keyword "THEN" is seen, this is substituted for ":". The keyword "ELSE" will also automatically have a second ":" token inserted in order to comply with python syntax. Thus the following pseudocode: