beau32 / amp

lex/yacc based ampscript compiler to aide SFMC local development and exprimentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

lex/yacc based ampscript compiler to aide SFMC local development and exprimentation

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%