GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - adangel/summit-ast: Summit-AST translates parsed Apex source code into an abstract syntax tree

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

146 Commits
146 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.mvn/wrapper
.mvn/wrapper
 
 
docs
docs
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Summit-AST

The Summit-AST library defines an abstract syntax tree (AST) data structure to represent Salesforce Apex source code, and it provides the translation of a parse tree into its AST representation.

This is not an official Google product.

Original repository (now archived): https://github.com/google/summit-ast

Maven coordinates (from version 3.0.0+):

<dependency>
    <groupId>com.github.adangel</groupId>
    <artifactId>summit-ast</artifactId>
    <version>3.1.0</version>
</dependency>

Dependencies

This is built on top of the apex-parser Apex parser, which is a compiled ANTLR4 grammar.

All dependencies are downloaded and managed through the build system.

Build

This software is built using Apache Maven.

$ ./mvnw compile
$ ./mvnw test

See docs/releasing.md for how a new release is created and published to Maven Central.

Running

The primary output is an in-memory AST data structure. The library is intended to be integrated into other development tools.

There is a small SummitTool demonstration executable, which parses Apex source files, builds the AST, and prints basic information. It can be executed by running:

$ ./mvnw compile exec:java -Dexec.mainClass="com.google.summit.SummitTool" -Dexec.args="[-json] [files | directories ...]"

Any directories will be recursively walked. The tool attempts to compile any files with the extension .cls or .trigger.

If the optional argument -json is given, then the AST is serialized additionally as json into a file. The file name will be the original Apex source file with the extension .json added.

About

Summit-AST translates parsed Apex source code into an abstract syntax tree

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.