Skip to content

Drop --json_ast from plcc and always copy over ParseJsonAst.java #124

@StoneyJackson

Description

@StoneyJackson

Now that we no longer pass around classpaths, and now that scripts update CLASSPATH to include the JARs from jackson, maybe we should just have plcc copy over ParseJsonAst.java by default and drop its --json_ast flag. This would simplify plcc in general, and specifically simplifies the process to generate an AST.

Currently, to produce an AST

$ plccmk --json_ast lang.plcc
$ plcc --json_ast < prog.lang

With this issue's suggestion...

$ plccmk lang.plcc
$ parse --json_ast < prog.lang

With this issue and #123 ...

$ plccmk lang.plcc
$ ast < prog.lang

The disadvantage of this issue's suggestion is that if one wants to manually compile Java/*, they would need to include the JARs from jackson in their CLASSPATH. If we agree that using plccmk to compile would be more common, then we could add a --no_ast option to plcc to prevent copying ParseJsonAst.java, and thus avoid requiring adding jackson's JARs to the CLASSPATH when compiling manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions