blob: d5d6983735418a3bf7134eb51d82901ccb9d1925 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Homework 1
Create a xxx2html syntax highlighter for a language of your choice.
### How to install and use SWI-Prolog
+ [How to install SWI-Prolog](https://wwu-pi.github.io/tutorials/lectures/lsp/010_install_swi_prolog.html)
+ [Quick start on how to use it](http://www.swi-prolog.org/pldoc/man?section=quickstart)
+ [Command line options](http://www.swi-prolog.org/pldoc/man?section=cmdline)
### Added bash script for executing program after successful installation of SWI-Prolog on a Unix or Unix-like variants
[Script](./executeProgram.sh)
### If you are going to install SWI-Prolog on Windows
+ You can omit lines 4 to 16 from c2html.pl.
+ Afterward in order to execute the program you can call the main predicate and give it a valid string name of file.
For example **main("test.c").**
### For the curious who want to find about DCG Grammar rules :
+ [SWI-Prolog/DCG](http://www.swi-prolog.org/pldoc/man?section=DCG)
+ [Wikibooks](https://en.wikibooks.org/wiki/Prolog/Definite_Clause_Grammars)
+ [A tutorial](http://www.pathwayslms.com/swipltuts/dcg/)
|