1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-27 09:31:18 +00:00

Apply 2 suggestion(s) to 2 file(s)

This commit is contained in:
Jesper Balman Gravgaard 2023-04-11 08:02:06 +00:00 committed by Sven Van de Velde
parent 8b7beac0c1
commit e7d717e915
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ public class CParser {
*/
public static final String PRAGMA_RESOURCE = "resource";
/**
* #pragma bank(...) specifies the scope of the sequent functions to be located in a bank using a specific banking area.
* #pragma bank(...) changes the current bank. Functionsand variables will be placed in the specified bank.
*/
public static final String PRAGMA_BANK = "bank";
/**

View File

@ -299,7 +299,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor<Objec
try {
final int size = ctx.getChildCount();
if(size==7) {
final String pragmaBankArea = pragmaParamBankArea(ctx.pragmaParam(0));
final String pragmaBankArea = pragmaParamName(ctx.pragmaParam(0));
final Number pragmaBank = pragmaParamNumber(ctx.pragmaParam(1));
this.currentBank = new Bank(pragmaBankArea, pragmaBank.longValue());
} else {