Skip to content

devemg/angular-jison

Repository files navigation

AngularJison

Instrucciones

  1. Agregar carpeta/archivos .jison
  2. Agregar archivos .jison al arreglo de scripts en angular.json (Línea 34)
  3. Declarar la variable grammar en el componente a utilizar declare var grammar: any;
  4. Hacer uso del método parse grammar.parse("TEXTO");

Nota: El objeto que se ha de importar en el punto 3 y utilizar en el punto 4 toma el nombre del archivo .jison que se compiló. En el presente ejemplo se utilizó un archivo llamado grammar.jison.

Project

This project was generated with Angular CLI version 11.2.9.

Dependencies

Install dependencies with npm install

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.