代码搜索结果
找到约 10,000 项符合
G 的代码
qxmlstream.g
----------------------------------------------------------------------------
--
-- Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
--
-- This file is part of the QtXML module of the Qt Too
qscript.g
----------------------------------------------------------------------------
--
-- Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
--
-- This file is part of the QtScript module of the Qt
g++.conf
#
# qmake configuration for common gcc
#
QMAKE_CC = gcc
QMAKE_CFLAGS += -pipe
QMAKE_CFLAGS_DEPS += -M
QMAKE_CFLAGS_WARN_ON += -Wall -W
QMAKE_CFLAGS_WARN_OFF += -w
QMAKE_CFLAGS_RELEASE += -O2
QMAKE_
calculator.g
grammar Calculator;
options {
language = Ruby;
}
evaluate returns [result]: r=expression { result = r };
expression returns [result]: r=mult (
'+' r2=mult {
r += r2
}
| '-' r2=mu
calculator.g
grammar Calculator;
options {
language = Ruby;
}
evaluate returns [result]: r=expression { result = r };
expression returns [result]: r=mult (
'+' r2=mult {
r += r2
}
| '-' r2=mu
t.g
/** Demonstrates how semantic predicates get hoisted out of the rule in
* which they are found and used in other decisions. This grammar illustrates
* how predicates can be used to distinguish b
symboltable.g
grammar SymbolTable;
/* Scope of symbol names. Both globals and block rules need to push a new
* symbol table upon entry and they must use the same stack. So, I must
* define a global scope and s
simplec.g
grammar SimpleC;
options {
language=ObjC;
}
program
: declaration+
;
/** In this rule, the functionHeader left prefix on the last two
* alternatives is not LL(k) for a fixed k. Howeve
simplec.g
grammar SimpleC;
options {
output=AST;
language=ObjC;
}
tokens {
VAR_DEF;
ARG_DEF;
FUNC_HDR;
FUNC_DECL;
FUNC_DEF;
BLOCK;
}
program
: declaration+
;
declara
combined.g
grammar Combined;
options {
language=ObjC;
}
stat: identifier+ ;
identifier
: ID
;
ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
INT : ('0'..'9')+
;
WS