TP_AL_C.git
7 years agoSyntactic analyser implementation with HTML conversion code
Jérôme Benoit [Mon, 20 Nov 2017 11:23:28 +0000 (12:23 +0100)] 
Syntactic analyser implementation with HTML conversion code
from MD syntax.

Yes, there's an off-by-one in the syntactic analyser but for now,
it is working ...

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd some fflush() for avoid loosing comme characters
Jérôme Benoit [Sun, 19 Nov 2017 13:45:46 +0000 (14:45 +0100)] 
Add some fflush() for avoid loosing comme characters
with fprintf().

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoMerge branch 'master' of git.piment-noir.org:TP_AL_C
Jérôme Benoit [Sun, 19 Nov 2017 13:34:52 +0000 (14:34 +0100)] 
Merge branch 'master' of git.piment-noir.org:TP_AL_C

7 years agoSyntactic analysis fully working implementation.
Jérôme Benoit [Sun, 19 Nov 2017 13:34:00 +0000 (14:34 +0100)] 
Syntactic analysis fully working implementation.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoFix usage message.
Jérôme Benoit [Sat, 18 Nov 2017 14:58:54 +0000 (15:58 +0100)] 
Fix usage message.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoTranslate all printed messages in english.
Jérôme Benoit [Wed, 15 Nov 2017 20:29:02 +0000 (21:29 +0100)] 
Translate all printed messages in english.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoMajor code revamping:
Jérôme Benoit [Wed, 15 Nov 2017 19:57:55 +0000 (20:57 +0100)] 
Major code revamping:

* Separate lexical analysis and syntactic analysis code;
* Add some print helper functions;
* Allow to use stdin and stdout as input and output file;

And probably some things I've forgot ...

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoFix a warning on a struct initializer.
Jérôme Benoit [Mon, 13 Nov 2017 19:31:05 +0000 (20:31 +0100)] 
Fix a warning on a struct initializer.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd a FIXME comment about multibytes characters support.
Jérôme Benoit [Mon, 13 Nov 2017 19:07:55 +0000 (20:07 +0100)] 
Add a FIXME comment about multibytes characters support.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoBeautify the token list output.
Jérôme Benoit [Mon, 13 Nov 2017 17:39:23 +0000 (18:39 +0100)] 
Beautify the token list output.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoMake use of EXIT_* return values.
Jérôme Benoit [Mon, 13 Nov 2017 12:38:40 +0000 (13:38 +0100)] 
Make use of EXIT_* return values.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoProperly read characters from the source file.
Jérôme Benoit [Mon, 13 Nov 2017 11:52:20 +0000 (12:52 +0100)] 
Properly read characters from the source file.

And add proper error handling.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoIntroduction of wchar.h to support more characters.
Jérôme Benoit [Sun, 12 Nov 2017 16:16:01 +0000 (17:16 +0100)] 
Introduction of wchar.h to support more characters.

Store the found token and its value in an struct array while at it.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoIncrement the number of tokens found after the array storage.
Jérôme Benoit [Thu, 9 Nov 2017 13:51:10 +0000 (14:51 +0100)] 
Increment the number of tokens found after the array storage.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoStore all tokens found during the lexical analysis in an array.
Jérôme Benoit [Thu, 9 Nov 2017 13:41:58 +0000 (14:41 +0100)] 
Store all tokens found during the lexical analysis in an array.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd FIXME comment for MOTCLE matching
Jérôme Benoit [Sun, 22 Oct 2017 17:44:49 +0000 (19:44 +0200)] 
Add FIXME comment for MOTCLE matching

7 years agoFix a typo
Jérôme Benoit [Sun, 22 Oct 2017 08:57:56 +0000 (10:57 +0200)] 
Fix a typo

7 years agoCode cleanup: properly indent the scanner function.
Jérôme Benoit [Sun, 22 Oct 2017 08:18:35 +0000 (10:18 +0200)] 
Code cleanup: properly indent the scanner function.

7 years agoCode cleanup and make the test.txt inline with the NPARA detection.
Jérôme Benoit [Sat, 21 Oct 2017 20:30:00 +0000 (22:30 +0200)] 
Code cleanup and make the test.txt inline with the NPARA detection.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoFix for the NPARA detection.
Jérôme Benoit [Sat, 21 Oct 2017 20:07:13 +0000 (22:07 +0200)] 
Fix for the NPARA detection.

I'm afraid this is not enough ...

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoFix the sub section detector.
Jérôme Benoit [Sat, 21 Oct 2017 16:53:02 +0000 (18:53 +0200)] 
Fix the sub section detector.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoPush the code of a basic lexical analyser for the markdown syntax.
Jérôme Benoit [Sat, 21 Oct 2017 16:34:24 +0000 (18:34 +0200)] 
Push the code of a basic lexical analyser for the markdown syntax.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd a test file for the lexer
Jérôme Benoit [Fri, 20 Oct 2017 10:11:57 +0000 (12:11 +0200)] 
Add a test file for the lexer

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd file parsing code to lexer
Jérôme Benoit [Fri, 20 Oct 2017 10:00:15 +0000 (12:00 +0200)] 
Add file parsing code to lexer

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd lexer code skeleton
Jérôme Benoit [Fri, 20 Oct 2017 09:20:00 +0000 (11:20 +0200)] 
Add lexer code skeleton

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd .gitignore
Jérôme Benoit [Fri, 20 Oct 2017 09:17:16 +0000 (11:17 +0200)] 
Add .gitignore

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>