Activity for KrisDS

  • KrisDS KrisDS posted a comment on discussion Help

    Hi Shiva, Yes, of course that's possible. Look at the classes under the “examples" folder to see how you can access the ASTs and start processing them. Cheers, Kris

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    I contacted you via LinkedIn. I hope I picked the right Guy. :-)

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    Hi Guy, Sorry, no. I process the data coming from the parser directly, without an intermediate transformation to XML. If you want more insight into the XML, I definitely recommend using the GUI. As the XML is pretty much a dump of the AST, anything you learn in one should be directly applicable in the other. The GUI lets you click on any token in the text and it will show you the path in the tree. There is also an option to visualize the AST in the UI. Even better, when you show the AST, clicking...

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    So the error says that it could not classify the "END-SEARCH", but everything up to that point seems to have gone allright. In particular it looks like it handled the search statement's condition (note the "condition < searchStatement" in the path). Looking at the grammar it expects to find something after the condition: WHEN condition ( nestedStatements | NEXT SENTENCE ) Your example does not have a nested statement, nor a NEXT SENTENCE, and so the parse fails. Adding a statement after line 044300...

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    I decided to move the project to GitHub. It is much easier for people to contribute changes there. So if you have something to share, you can now base it off the version found at https://github.com/krisds/koopa/issues . I'm happy to keep the discussion here though.

  • KrisDS KrisDS posted a comment on discussion Help

    I decided to move the project to GitHub to make it easier for people to contribute. You can now find it here: https://github.com/krisds/koopa/issues The SourceForge version will remain for historic purposes. I'll keep an eye on the forums here for a while longer.

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    I decided to move the project to GitHub to make it easier for people to contribute. You can now find it here: https://github.com/krisds/koopa/issues The SourceForge version will remain for historic purposes. I'll keep an eye on the forums here for a while longer.

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    Hey Adam, Koopa uses SVN right now, so the easiest way to share your changes is to make a diff between your code and the latest commit here, and share that. (I see that SF supports git now, so maybe I'll take some time to migrate the repo over to that. I'm not sure what the best option is.) But before that, do you have an example of dummy operands which Koopa fails to handle ? That way I can inspect what goes wrong, and give you a better answer. I would actually expect Koopa to be able to handle...

  • KrisDS KrisDS committed [r417]

    Simplify grammar for some CICS options

  • KrisDS KrisDS committed [r416]

    Easy conversion of Start to matching End

  • KrisDS KrisDS committed [r415]

    TRUE and FALSE in common nodes

  • KrisDS KrisDS committed [r414]

    Adding a common type for all statement END markers.

  • KrisDS KrisDS committed [r413]

    Fix double closing of Targets by Flow when there's a WaterTagger.

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    The XML has the same info as the AST. It's just a way to store it. You can analyze the AST in code, or analyze the XML, in whatever way you want. Calculating a flow graph will mean understanding how a Cobol program flows, and then querying the AST to give you the information you need to calculate it. You'll need to look at sections, paragraphs, specific statements. It's not impossible, or especially hard, but it does take work to do.

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    The XML has the same info as the AST. It's just a way to store it. You can analyze the AST in code, or analyze the XML, in whatever way you want. Calculating a flow graph will mean understanding how a Cobol program flows, and then querying the AST to give you the information you need to calculate it. You'll need to look at sections, paragraphs, specific statements. It's not impossible, or especially hard, but it does take work to do.

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    I'm not sure what you mean by "variables with hierarchy". Right now only XML export of the full AST is built-in. If you need something custom you will have to code it yourself. The easiest way is to grab the AST and process it how you want. If you look at "JaxenSample" you can see how to do the first part.

  • KrisDS KrisDS posted a comment on discussion Open Discussion

    Hi Bharani, Koopa includes a tool which lets you export the AST to XML. You can invoke it with "java -cp koopa.jar koopa.app.cli.ToXml", or use the "Export to XML" action under "Syntax Tree" in the GUI. Hope that helps, Kris

  • KrisDS KrisDS committed [r412]

    Start and End are flyweights, so equality can be simplified.

  • KrisDS KrisDS committed [r411]

    Applying the improved optimizer logic to permutations too.

  • KrisDS KrisDS committed [r410]

    Performance tweaks

  • KrisDS KrisDS committed [r409]

    Position-spec test.

  • KrisDS KrisDS committed [r408]

    Partial expressions in selection objects in EVALUATE statements

  • KrisDS KrisDS committed [r407]

    Adding position-spec anyway.

  • KrisDS KrisDS committed [r406]

    Note and test on position-spec in DISPLAY/ACCEPT.

  • KrisDS KrisDS committed [r405]

    Fix a test file.

  • KrisDS KrisDS committed [r404]

    FUNCTION name+ INTRINSIC

  • KrisDS KrisDS committed [r403]

    ACCEPT: WITH is optional

  • KrisDS KrisDS committed [r402]

    DISPLAY ERASE SCREEN

  • KrisDS KrisDS committed [r401]

    ENTRY USING BY CONTENT

  • KrisDS KrisDS committed [r400]

    ACCEPT FROM ENVIRONMENT identifier

  • KrisDS KrisDS committed [r399]

    COPYs in comments don't count. Obviously.

  • KrisDS KrisDS committed [r398]

    Guarding against an NPE.

  • KrisDS KrisDS committed [r397]

    Introducing the CobolProject interface.

  • KrisDS KrisDS committed [r396]

    Keyword test: refactored from recursion to a loop

  • KrisDS KrisDS committed [r395]

    Fix grammar for parameters in MF directives.

  • KrisDS KrisDS modified ticket #67

    Cash not find class koopa.core.parsers.combinators.MatchTree

  • KrisDS KrisDS posted a comment on ticket #67

    Sorry about that. It's been a while since I used svn and I forgot to add those classes in. Should be fixed now.

  • KrisDS KrisDS committed [r394]

    Add missing classes.

  • KrisDS KrisDS committed [r393]

    Extended grammar and parser to allow matching against trees (just the root, or in more detail).

  • KrisDS KrisDS committed [r392]

    Refactoring Source.

  • KrisDS KrisDS committed [r391]

    Syntactic sugar for %noskip.

  • KrisDS KrisDS committed [r390]

    Replaced compiler directives regexes with actua...

  • KrisDS KrisDS committed [r389]

    Tweaking the loggers.

  • KrisDS KrisDS committed [r388]

    Rewrite/Refactoring of the sources.

  • KrisDS KrisDS committed [r387]

    Optimizer

  • KrisDS KrisDS committed [r386]

    First pass at an omniscient debugger.

  • KrisDS KrisDS committed [r385]

    Added a GUI option to set some log levels inter...

  • KrisDS KrisDS modified ticket #33

    MF compiler directives

  • KrisDS KrisDS modified ticket #41

    Move support for embedded languages into dedicated grammars

  • KrisDS KrisDS posted a comment on ticket #41

    Added syntax in [r384]. E.g. sql::statement

  • KrisDS KrisDS committed [r384]

    Issue #41: added syntactic sugar for referencin...

  • KrisDS KrisDS posted a comment on ticket #65

    It should really just be "Koopa Parser Generator" now, as you can use it for plenty...

  • KrisDS KrisDS posted a comment on ticket #41

    No, there are some hand-written forwarding methods in CobolBaseGrammar to make up...

  • KrisDS KrisDS committed [r383]

    Missing %notempty's. Tweaking CALL statement SI...

  • KrisDS KrisDS committed [r382]

    Handling optional headers in Micro Focus Cobol.

  • KrisDS KrisDS committed [r381]

    Compiler directives: refactoring and more tests

  • KrisDS KrisDS committed [r380]

    Java 5 oops.

  • KrisDS KrisDS committed [r379]

    Support for tabs.

  • KrisDS KrisDS committed [r378]

    Support MF VARIABLE format

  • KrisDS KrisDS committed [r377]

    SQL: ALTER SESSION

  • KrisDS KrisDS committed [r376]

    XML PARSE WITH ENCODING, and related tweaks

  • KrisDS KrisDS committed [r375]

    Tweak possible branch orderings

  • KrisDS KrisDS committed [r374]

    Tweaking OCCURS clause.

  • KrisDS KrisDS committed [r373]

    Tweaking SIGN clauses

  • KrisDS KrisDS committed [r372]

    SQL: SELECT COUNT(*)

  • KrisDS KrisDS committed [r371]

    SELECT INTO host parameters

  • KrisDS KrisDS committed [r370]

    Separated CICS and SQL from the Cobol source code.

  • KrisDS KrisDS committed [r369]

    Updated the example project to match the latest...

  • KrisDS KrisDS committed [r368]

    DELETE statement improvements

  • KrisDS KrisDS committed [r367]

    Removed support for native code in grammars

  • KrisDS KrisDS committed [r366]

    Support for some bottom-up parsing. Big update.

  • KrisDS KrisDS committed [r365]

    LimitedStream.peek was forcing delayed markers,...

  • KrisDS KrisDS committed [r364]

    Handling comments in COPY REPLACE and pseudo li...

  • KrisDS KrisDS committed [r363]

    Refactoring BaseStream, reworking its 'seen' li...

  • KrisDS KrisDS committed [r362]

    Added tests for LimitedStream; some cleanup

  • KrisDS KrisDS committed [r361]

    Deleted these files as well.

  • KrisDS KrisDS committed [r360]

    Summer cleaning

  • KrisDS KrisDS committed [r359]

    Support floating point numbers.

  • KrisDS KrisDS posted a comment on ticket #22

    Yes, CONSTANT AS is covered by the constantEntry_level01 rule. RETRY and DYNAMIC...

  • KrisDS KrisDS modified ticket #14

    "not all input was consumed": parsing of (optional) comma

  • KrisDS KrisDS modified ticket #20

    Bugs in "Export batch results to CSV"

  • KrisDS KrisDS modified ticket #22

    Parsing: Missing data types

  • KrisDS KrisDS posted a comment on ticket #22

    Given the nature and goals of Koopa I'm not going to add "not allowed" checks. I...

  • KrisDS KrisDS modified ticket #49

    Last line before starting a new paragraph must ends with Dot "."

  • KrisDS KrisDS modified ticket #60

    Boolean literal

  • KrisDS KrisDS posted a comment on ticket #60

    Added more structure to the SET statement in [r358].

  • KrisDS KrisDS committed [r358]

    Issue #60: added more structure to the AST for ...

  • KrisDS KrisDS modified ticket #43

    Don't parse code in comment entry paragraphs

  • KrisDS KrisDS posted a comment on ticket #43

    Going through the open issues. I added support for comment entries in some expected...

  • KrisDS KrisDS modified ticket #59

    preprocessing mark as both LAND and WATER

  • KrisDS KrisDS posted a comment on ticket #59

    Fixed in [r357]. Was due to a bad test in the code clearing the tags.

  • KrisDS KrisDS committed [r357]

    Issue #59: fix spurious tagging of both LAND an...

  • KrisDS KrisDS posted a comment on ticket #19

    I considered it, but there is no clean way to open links from within a Java 5 app...

  • KrisDS KrisDS modified ticket #19

    FR (GUI): Add Help Menu with version history, current README, LICENCE, ...

  • KrisDS KrisDS posted a comment on ticket #19

    Fixed in [r356].

  • KrisDS KrisDS committed [r356]

    Issue #19: help menu showing license, readme an...

  • KrisDS KrisDS posted a comment on ticket #19

    I'm going to keep the version history out, as you can easily find it here (https...

  • KrisDS KrisDS modified ticket #64

    Koopa: Add GUI option for defining "everything which can be set via VM options" (at least -Dkoopa.cobolFileExtensions=<comma-separated-list-of-extensions>

  • KrisDS KrisDS posted a comment on ticket #64

    The GUI option has been added in [r355].

  • KrisDS KrisDS committed [r355]

    Issue #64: add a GUI option to set the file ext...

1 >
MongoDB Logo MongoDB