adrianghub / AST-to-HTML-Converter

AST to HTML converter built in js, bundle with parcel.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Practice project "Abstract Syntax Trees (AST)"

Imagine this scenerio. There is this time in in your working team when you're trying to figurying out how to make HTML<->AST converter, built in order to handle object representation of HTML, applicable with the framework configuration. One person from your team has written the first part of this converter, which converts HTML to AST. You're responsible for reverse this process.

Create module which exports function convertASTToString. As a parameter function should take object representation of HTML fraction (Abstract Syntax Tree). Output should returns fraction of the HTML converted to string.

Layout of the built converter.

Table of contents πŸ“”

Technologies

  • HTML5
  • CSS3
  • Javascript

How to run πŸ”₯ πŸ”₯ πŸ”₯

  1. Clone this repo https://github.com/AdrianGHub/AST-to-HTML-Converter.git

  2. Make sure you have Node.js with npm from nodejs.org or via nvm | n

  3. Install parcel bundler :

npm install -g parcel-bundler

  1. Localize your directory with project and run following command :

parcel index.html

  1. Open website on localhost with index.html file displayed.

  2. Have fun! 😎

About

AST to HTML converter built in js, bundle with parcel.js


Languages

Language:JavaScript 75.6%Language:CSS 13.1%Language:HTML 11.2%