4 class BookkeepingParser extends Parser;
8 importVocab=BookkeepingLexer;
14 <!-- command -opts (token -opts(token)) -->
16 create(entry -entrynum -journal -date (
17 create(debit -entry -account -amount),
18 create(credit -entry -account -amount),
19 create(credit -entry -account -amount)
21 create(journal -name(entry,entry,...));
22 create(transaction -date(entry,entry,...));
23 create(account -name -type -counterweight(debit|credit,...));
28 //token_literal: TOKENLITERAL { System.out.println("TOKEN LITERAL >>> Parser"); };
31 expr: t:TOKEN_LITERAL ( DELIMITER TOKEN_LITERAL )*
32 { System.out.println( "EXPRESSION >>> Parser: "+ t.getText() ); };