Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Generate Grammar using PHP Manual as input #106

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add documentation
klorenz committed Oct 22, 2015
commit a766fae8bfc53405cb7b9ab8ca39f616f6756bc4
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -9,3 +9,20 @@ Contributions are greatly appreciated. Please fork this repository and open a
pull request to add snippets, make grammar tweaks, etc.


## Development

Grammar `grammars/php.cson` is generated from `src/php.coffee` using PHP Manual as
input.

For now it is done in an un-nodejs-ish way using `make` having `make`, `bash`,
`curl` and `perl` involved:
```
make
```

This will fetch PHP Manual and generate `src/php-constants.coffee`, `src/php-functions.coffee` and deploys the full documentation in
`tmp/php-chunked-xhtml/`. File `tmp/php-chunked-xhtml/search-index.json`
is involved from `src/php-grammar.coffee` to create builtin class lists.

Once having run the initial make, the environment is ready to build php.cson
each time on running the package tests.