From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.163.4 with SMTP id ye4mr16422163pab.23.1457917094087; Sun, 13 Mar 2016 17:58:14 -0700 (PDT) X-Received: by 10.182.80.74 with SMTP id p10mr214006obx.8.1457917093959; Sun, 13 Mar 2016 17:58:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!nt3no1455602igb.0!news-out.google.com!k1ni17822igd.0!nntp.google.com!av4no482609igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 13 Mar 2016 17:58:13 -0700 (PDT) In-Reply-To: <87a8m2jlp7.fsf@adaheads.consafe1.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=97.123.205.31; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 97.123.205.31 References: <87a8m2jlp7.fsf@adaheads.consafe1.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8583acc7-f646-4d78-a8fe-d3d4b1c28806@googlegroups.com> Subject: Pretty-printer? (Alternatives to "gnatpp") From: Shark8 Injection-Date: Mon, 14 Mar 2016 00:58:14 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29743 Date: 2016-03-13T17:58:13-07:00 List-Id: Byron is at the lexing stage, it could therefore be used as input to a pretty-printer... or just add a "filter" function that has a local dictionary w/ identifiers of the casing you want and iterate over the token-array with the following conditional: IF token is identifier THEN IF identifier not present THEN add identifier to dictionary OTHERWISE replace identifier w/ one of the found casing. END IF END IF https://github.com/OneWingedShark/Byron