langscan.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "strings.h"
#include "ops.h"
#include "yytab.h"
#include "lang.h"
#include "langinternal.h"
#include "langparser.h"
#include "byteorder.h"

Include dependency graph for langscan.c:

Go to the source code of this file.

Defines

#define chstartcomment   (byte) chcomment
#define chendscanstring   (byte)0

Functions

boolean isfirstidentifierchar (byte ch)
boolean isidentifierchar (byte ch)
boolean langisidentifier (bigstring bs)
static boolean midinsertchar (byte ch, bigstring bs, short ixinsert)
boolean langdeparsestring (bigstring bs, byte chendquote)
void parsesetscanstring (Handle htext, boolean fllinebased)
unsigned long parsegetscanoffset (unsigned long ctlines, unsigned short ctchars)
void parsesetscanoffset (unsigned long offset)
static boolean parsestringempty (void)
static byte parsepopchar (void)
static byte parsefirstchar (void)
static byte parsenextchar (void)
static void parsepopidentifier (bigstring bs)
static boolean parsepopnumber (tyvaluerecord *val)
static byte parsepopescapesequence (void)
static boolean buildtexthandle (bigstring bs, Handle *htext)
static boolean parsepopstringconst (Handle *htext)
static void parsepopcomment (void)
static boolean parsepopblanks (void)
static boolean parsepopcharconst (tyvaluerecord *val)
static tokentype langscanner (hdltreenode *nodetoken)
tokentype parsegettoken (hdltreenode *nodetoken)
boolean langstriptextsyntax (Handle htext)
boolean langaddapplescriptsyntax (Handle hscript)

Variables

unsigned long ctscanlines
unsigned short ctscanchars
static Handle hscanstring
static boolean fllinebasedscan
static long ixparsestring
static long lenparsestring
static boolean flsenteol
bigstring bstoken


Define Documentation

#define chendscanstring   (byte)0
 

Definition at line 44 of file langscan.c.

Referenced by parsefirstchar(), parsenextchar(), parsepopchar(), parsepopcharconst(), parsepopcomment(), and parsepopstringconst().

#define chstartcomment   (byte) chcomment
 

Definition at line 42 of file langscan.c.

Referenced by parsepopblanks().


Function Documentation

static boolean buildtexthandle bigstring  bs,
Handle htext
[static]
 

Definition at line 564 of file langscan.c.

References fl, newtexthandle(), nil, and pushtexthandle().

Referenced by parsepopstringconst().

Here is the call graph for this function:

boolean isfirstidentifierchar byte  ch  ) 
 

Definition at line 67 of file langscan.c.

Referenced by isidentifierchar(), langisidentifier(), and langscanner().

boolean isidentifierchar byte  ch  ) 
 

Definition at line 85 of file langscan.c.

References isfirstidentifierchar().

Referenced by langisidentifier(), and parsepopidentifier().

Here is the call graph for this function:

boolean langaddapplescriptsyntax Handle  hscript  ) 
 

Definition at line 1225 of file langscan.c.

References bigstring, ctscanlines, disablelangerror(), enablelangerror(), eoltoken, hnode, identifiertoken, insertinhandle(), ixparsestring, langdisposetree(), langscanner(), lenparsestring, parsesetscanstring(), pullstringvalue(), stringlength, and tokentype.

Referenced by opgetlangtext().

Here is the call graph for this function:

boolean langdeparsestring bigstring  bs,
byte  chendquote
 

Definition at line 158 of file langscan.c.

References ct, and stringlength.

Referenced by ccloadspecialfile(), ccsavespecialfile(), getlimitedvaluestring(), getostypedisplaystring(), hashgetvaluestring(), langexternalquotename(), and listtostring().

boolean langisidentifier bigstring  bs  ) 
 

Definition at line 105 of file langscan.c.

References ct, hashtablelookup(), hconsttable, hkeywordtable, hnode, isfirstidentifierchar(), isidentifierchar(), and stringlength.

Referenced by langexternalbracketname().

Here is the call graph for this function:

static tokentype langscanner hdltreenode nodetoken  )  [static]
 

Definition at line 807 of file langscan.c.

References addtoken, andandtoken, assigntoken, bigstring, bitandtoken, bitortoken, bstoken, chdoublequote, chsinglequote, constanttoken, copystring(), copyvaluerecord(), tyvaluerecord::data, dividetoken, eoltoken, EQtoken, errortoken, exemptfromtmpstack(), fl, flsenteol, GEtoken, GTtoken, hashtablelookup(), hconsttable, hkeywordtable, hnode, identifiertoken, illegaltokenerror, initvalue(), isfirstidentifierchar(), langparamerror(), LEtoken, LTtoken, minusminustoken, modtoken, multiplytoken, NEtoken, newconstnode(), newidnode(), newtexthandle(), nil, nottoken, orortoken, parsefirstchar(), parsepopblanks(), parsepopchar(), parsepopcharconst(), parsepopidentifier(), parsepopnumber(), parsepopstringconst(), plusplustoken, pushchar(), setstringlength, setstringwithchar, tyvaluedata::stringvalue, stringvaluetype, subtracttoken, texthandletostring(), tokentype, and tyvaluedata::tokenvalue.

Referenced by langaddapplescriptsyntax(), langstriptextsyntax(), and parsegettoken().

Here is the call graph for this function:

boolean langstriptextsyntax Handle  htext  ) 
 

Definition at line 1127 of file langscan.c.

References ctscanlines, disablelangerror(), enablelangerror(), eoltoken, errortoken, hnode, ixparsestring, langdisposetree(), langscanner(), lenparsestring, nil, parsesetscanstring(), pullfromhandle(), and tokentype.

Referenced by scripttexttooutlineroutine().

Here is the call graph for this function:

static boolean midinsertchar byte  ch,
bigstring  bs,
short  ixinsert
[static]
 

Definition at line 141 of file langscan.c.

References lenbigstring, midinsertstring(), setstringlength, setstringwithchar, and stringlength.

Here is the call graph for this function:

static byte parsefirstchar void   )  [static]
 

Definition at line 346 of file langscan.c.

References chendscanstring, hscanstring, ixparsestring, and lenparsestring.

Referenced by langscanner(), parsepopblanks(), parsepopescapesequence(), parsepopidentifier(), and parsepopnumber().

unsigned long parsegetscanoffset unsigned long  ctlines,
unsigned short  ctchars
 

Definition at line 270 of file langscan.c.

Referenced by langgetsourceoffset().

tokentype parsegettoken hdltreenode nodetoken  ) 
 

Definition at line 1110 of file langscan.c.

References langscanner(), and tokentype.

Referenced by yylex().

Here is the call graph for this function:

static byte parsenextchar void   )  [static]
 

Definition at line 365 of file langscan.c.

References chendscanstring, hscanstring, ixparsestring, and lenparsestring.

Referenced by parsepopblanks().

static boolean parsepopblanks void   )  [static]
 

Definition at line 681 of file langscan.c.

References chreturn, chstartcomment, chtab, parsefirstchar(), parsenextchar(), parsepopchar(), parsepopcomment(), and parsestringempty().

Referenced by langscanner().

Here is the call graph for this function:

static byte parsepopchar void   )  [static]
 

Definition at line 301 of file langscan.c.

References chendscanstring, chlinefeed, chreturn, ctscanchars, ctscanlines, fllinebasedscan, hscanstring, ixparsestring, and lenparsestring.

Referenced by langscanner(), parsepopblanks(), parsepopcharconst(), parsepopcomment(), parsepopescapesequence(), parsepopidentifier(), parsepopnumber(), and parsepopstringconst().

static boolean parsepopcharconst tyvaluerecord val  )  [static]
 

Definition at line 714 of file langscan.c.

References badcharconsterror, bstoken, chendscanstring, chsinglequote, ctscanchars, ctscanlines, error, langerror(), moveleft(), ostypetostring(), parsepopchar(), parsepopescapesequence(), pushchar(), setcharvalue(), and setostypevalue().

Referenced by langscanner().

Here is the call graph for this function:

static void parsepopcomment void   )  [static]
 

Definition at line 660 of file langscan.c.

References chendscanstring, chreturn, and parsepopchar().

Referenced by parsepopblanks().

Here is the call graph for this function:

static byte parsepopescapesequence void   )  [static]
 

Definition at line 509 of file langscan.c.

References bigstring, hexstringtonumber(), parsefirstchar(), parsepopchar(), pushchar(), and setstringwithchar.

Referenced by parsepopcharconst(), and parsepopstringconst().

Here is the call graph for this function:

static void parsepopidentifier bigstring  bs  )  [static]
 

Definition at line 384 of file langscan.c.

References isidentifierchar(), parsefirstchar(), parsepopchar(), pushchar(), and setstringlength.

Referenced by langscanner().

Here is the call graph for this function:

static boolean parsepopnumber tyvaluerecord val  )  [static]
 

Definition at line 403 of file langscan.c.

References bigstring, bstoken, copystring(), doublevaluetype, equalstrings(), hexstringtonumber(), initvalue(), langparamerror(), longsizeof, newfilledhandle(), numbertoolargeerror, numbertostring(), parsefirstchar(), parsepopchar(), popleadingchars(), pushchar(), setemptystring, setlongvalue(), stringlength, stringtofloat(), and stringtonumber().

Referenced by langscanner().

Here is the call graph for this function:

static boolean parsepopstringconst Handle htext  )  [static]
 

Definition at line 583 of file langscan.c.

References bigstring, buildtexthandle(), chendscanstring, chreturn, ctscanchars, ctscanlines, langerror(), nil, parsepopchar(), parsepopescapesequence(), pushchar(), setstringlength, setstringwithchar, and stringnotterminatederror.

Referenced by langscanner().

Here is the call graph for this function:

void parsesetscanoffset unsigned long  offset  ) 
 

Definition at line 281 of file langscan.c.

References ctscanchars, and ctscanlines.

Referenced by langsetsourceoffset().

void parsesetscanstring Handle  htext,
boolean  fllinebased
 

Definition at line 252 of file langscan.c.

References ctscanchars, ctscanlines, fllinebasedscan, flsenteol, gethandlesize(), hscanstring, ixparsestring, and lenparsestring.

Referenced by langaddapplescriptsyntax(), langcompiletext(), and langstriptextsyntax().

Here is the call graph for this function:

static boolean parsestringempty void   )  [static]
 

Definition at line 295 of file langscan.c.

References ixparsestring, and lenparsestring.

Referenced by parsepopblanks().


Variable Documentation

bigstring bstoken
 

Definition at line 62 of file langscan.c.

Referenced by langscanner(), parsepopcharconst(), parsepopnumber(), and xmlcompile().

unsigned short ctscanchars
 

Definition at line 48 of file langscan.c.

Referenced by copythreadglobals(), fwsgetcallbackcodetree(), issafemacro(), langcompileerror(), langcompiletext(), langerrordialog(), langerrorset(), langexpandtodotparams(), langnewtreenode(), langpusherrorcallback(), langrun(), langseterrorline(), osaDebug(), osaerrormessage(), parseaddress(), parsepopchar(), parsepopcharconst(), parsepopstringconst(), parsesetscanoffset(), parsesetscanstring(), renumberlinesvisit(), stringtolist(), stringtoobjspec(), and swapinthreadglobals().

unsigned long ctscanlines
 

Definition at line 46 of file langscan.c.

Referenced by copythreadglobals(), fwsgetcallbackcodetree(), issafemacro(), langaddapplescriptsyntax(), langcompileerror(), langcompiletext(), langerrordialog(), langerrorset(), langexpandtodotparams(), langnewtreenode(), langpusherrorcallback(), langrun(), langseterrorline(), langstriptextsyntax(), osaDebug(), osaerrormessage(), parseaddress(), parsepopchar(), parsepopcharconst(), parsepopstringconst(), parsesetscanoffset(), parsesetscanstring(), renumberlinesvisit(), stringtolist(), stringtoobjspec(), and swapinthreadglobals().

boolean fllinebasedscan [static]
 

Definition at line 53 of file langscan.c.

Referenced by parsepopchar(), and parsesetscanstring().

boolean flsenteol [static]
 

Definition at line 59 of file langscan.c.

Referenced by langscanner(), and parsesetscanstring().

Handle hscanstring [static]
 

Definition at line 51 of file langscan.c.

Referenced by parsefirstchar(), parsenextchar(), parsepopchar(), and parsesetscanstring().

long ixparsestring [static]
 

Definition at line 55 of file langscan.c.

Referenced by langaddapplescriptsyntax(), langstriptextsyntax(), parsefirstchar(), parsenextchar(), parsepopchar(), parsesetscanstring(), and parsestringempty().

long lenparsestring [static]
 

Definition at line 57 of file langscan.c.

Referenced by langaddapplescriptsyntax(), langstriptextsyntax(), parsefirstchar(), parsenextchar(), parsepopchar(), parsesetscanstring(), and parsestringempty().


Generated on Sun Jun 4 15:45:02 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6