Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 592 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 592 Bytes

amp

PLY(lex/yacc) based AMPscript compiler to aide Salesforce Marketing Cloud local development and exprimentation. This tool runs in interpreter and compiler mode. In compiler model, it takes an ampscript file as input, and output python code.

to install

git clone https://github.com/beau32/amp.git
cd amp
pip3 install -r requirement.txt

to launch the intrepeter

python3 amp.py

to launch the compiler and transcode to either javascript or python

python3 amp.py -l js -i codesample.ampscript > output.js

python3 amp.py -l py -i codesample.ampscript > output.py