From 7f0ab87cffdd857da1eb66a20539c57a2f6fb0d5 Mon Sep 17 00:00:00 2001 From: lkcl Date: Tue, 22 Jun 2021 16:43:59 +0100 Subject: [PATCH] --- openpower/isa.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2