summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* tyTypeDesc and tyRange always have 1 child; this might be tyNone but it is ↵Araq2014-02-059-41/+57
| | | | required for skipTypes
* bugfix: immediate templates are preferred consistently (danger: breaks code)Araq2014-02-042-9/+38
|
* macro tests almost greenAraq2014-02-034-17/+26
|
* cleaned up command expressionsAraq2014-02-021-6/+5
|
* fixes #844Araq2014-02-023-7/+9
|
* remove the old testerAraq2014-02-0212-131/+199
|\
| * Fixes #848.Dominik Picheta2014-01-271-1/+1
| |
| * Merge branch 'devel' of https://www.github.com/Araq/Nimrod into develZahary Karadjov2014-01-2610-209/+317
| |\
| * | the `is` operator now uses exactly the same a
/*                         LEXICAL ANALYSOR (MAINLY FOR CONFIG FILES)
                                             
 */

#ifndef HTLEX_H
#define HTLEX_H

#include <HTUtils.h>

#ifdef SHORT_NAMES
#define lex_verb        lex_verbose
#endif /*SHORT_NAMES*/

typedef enum {
    LEX_NONE,		/* Internally used      */
    LEX_EOF,		/* End of file          */
    LEX_REC_SEP,	/* Record separator     */
    LEX_FIELD_SEP,	/* Field separator      */
    LEX_ITEM_SEP,	/* List item separator  */
    LEX_OPEN_PAREN,	/* Group start tag      */
    LEX_CLOSE_PAREN,	/* Group end tag        */
    LEX_AT_SIGN,	/* Address qualifier    */
    LEX_ALPH_STR,	/* Alphanumeric string  */
    LEX_TMPL_STR	/* Template string      */
} LexItem;

extern char HTlex_buffer[];	/* Read lexical string          */
extern int HTlex_line;		/* Line number in source file   */

/*

Get Next Lexical Item

   If returns LEX_ALPH_STR
2014-01-251-2/+1
| |
* | renderer knows about nkStaticTy and nkTypeClassTyAraq2014-01-231-0/+23
| |
* | typeClasses now documented in grammar.txtAraq2014-01-231-0/+4
| |
* | Merge branch 'devel' of https://github.com/Araq/Nimrod into develAraq2014-01-231-57/+67
|\|
| * nest PreMain inside NimMain for easier consumption of static libraries ↵Zahary Karadjov2014-01-231-57/+67
| | | | | | | | | | | | developed in Nimrod fixes many uses of $N instead of $n for new lines that don't affect #line directives
* | small code cleanupsAraq2014-01-232-4/+1
| |
* | closure iterators workAraq2014-01-231-15/+39
| |
* | closure iterators almost workAraq2014-01-232-191/+189
| |
* | next steps for closure iteratorsAraq2014-01-227-53/+107
|/
* Merge branch 'devel' of https://github.com/Araq/Nimrod into develAraq2014-01-201-1/+1
|\
| * fix the segfault in #827Zahary Karadjov2014-01-201-1/+1
| |
* | parser support anon iteratorsAraq2014-01-202-4/+9
| |
* | updated grammar.txtAraq2014-01-201-2/+2
| |
* | command syntax is allowed in expressionsAraq2014-01-201-44/+74
|/
* compiler warns when you use GC'ed memory and '--gc:none'Araq2014-01-192-2/+19
|
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-1939-128/+131
|
* it's the year 2014Araq2014-01-197-20/+20
|
* 'inject' for the new symbol binding rules in templatesAraq2014-01-191-7/+19
|
* resolved conflicts with masterAraq2014-01-184-595/+8
|\
| * bugfix: doc generation for actors.nim works againAraq2014-01-131-4/+5
| |
| * Removes generated .dot file uploaded by mistake.Grzegorz Adam Hankiewicz2013-12-301-591/+0
| |
| * Fixes #594Dominik Picheta2013-12-281-1/+1
| | | | | | | | | | This was already partially fixed, ``expandTilde`` was the missing piece from perfection.
| * Added --noBabelPath override.Dominik Picheta2013-12-252-1/+5
| |
* | unittest module works againAraq2014-01-181-2/+11
| |
* | better testerAraq2014-01-171-2/+2
| |
* | Merge branch 'devel' of https://github.com/Araq/Nimrod into develAraq2014-01-175-390/+463
|\ \
| * \ Merge pull request #814 from discoloda/develAndreas Rumpf2014-01-145-390/+463
| |\ \ | | | | | | | | Many small improvements to c2nim
| | * | Applied Araq's suggestions for c2nimVincent Burns2014-01-142-9/+11
| | | |
| | * | removed hack for return statementVincent Burns2014-01-142-9/+14
| | | |
| | * | Slightly better type parsing for parameters and cast expressionsVincent Burns2014-01-142-7/+46
| | | |